# Cierre de Mes

A continuación se detalla el paso a paso a seguir durante el cierre de mes :&#x20;

1. Se actualiza tabla usuarios\_mes\_ant&#x20;

`DROP TABLE Usuarios_mes_ant`&#x20;

`SELECT * INTO usuarios_mes_ant FROM usuarios`

2\. Se bloquean usuarios durante proceso de cierre&#x20;

`update usuarios set bloqueado=1`

3\. Realizar recalculo de contabilidad módulo 0508 - Mes a cerrar

<img src="/files/XwaB3WIUUU5lD5emZ0KP" alt="" data-size="original">

4\. Realizar recalculo de inventarios Módulo 0507 - Mes a cerrar

![](/files/zBSgZCJnQ5uH0j4fib69)

5\. Correr cierre de Mes - Módulo 0501

![](/files/Pcvzj3QLpCMWV7JlINJG)

6\. Se reversa update usuarios anterior después del cierre.&#x20;

`update usuarios`&#x20;

`set bloqueado=ua.bloqueado`&#x20;

`from usuarios u join usuarios_mes_ant ua on u.usuario=ua.usuario`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://desarrollo-ti.gitbook.io/enlaces-ti/dms/cierre-de-mes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
