> For the complete documentation index, see [llms.txt](https://softypaq.gitbook.io/centro-de-ayuda-softypaq/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://softypaq.gitbook.io/centro-de-ayuda-softypaq/operacion/lotes-de-guias.md).

# Lotes de guías

Un **lote de guías** reserva por adelantado un **rango consecutivo de folios** para un cliente (por ejemplo, del 000100 al 000199), de forma que las guías que se creen bajo ese lote tomen automáticamente un folio dentro del rango asignado, en lugar de numerarse de forma independiente.

### Crear un lote

1. Selecciona el **cliente** al que pertenecerá el lote.
2. Indica la **cantidad** de folios que necesitas reservar.
3. El sistema calcula automáticamente el **siguiente rango disponible** (rango de inicio y fin) según los lotes ya existentes, para evitar folios duplicados.
4. Opcionalmente define un **kilaje** (límite de peso, entre 1 y 200) asociado al lote.
5. Guarda el lote; queda **Activo** de forma predeterminada.

### Activar / desactivar un lote

Un lote se puede **desactivar** manualmente, o programar su desactivación con una **fecha de desactivación programada**. Un lote inactivo no debería seguir usándose para numerar guías nuevas.

### Relación con Guías

Al crear una guía nueva (ver Guías de envío), se puede asociar a un lote existente desde el propio formulario o al importar por CSV usando el campo `lote_id`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://softypaq.gitbook.io/centro-de-ayuda-softypaq/operacion/lotes-de-guias.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
