> For the complete documentation index, see [llms.txt](https://docs.rmhpos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rmhpos.com/es/store-manager/manage-inventory/update-on-hand-quantities-with-parent-child-relationships/setting-up-parent-child-relationships.md).

# Configurar relaciones principal-secundario entre artículos

Este tema describe cómo configurar relaciones principal-secundario entre artículos.

Los artículos principales contienen una cantidad fija de artículos secundarios; por ejemplo, una caja (artículo principal) de 24 botellas de agua (artículos secundarios). Cuando la cantidad disponible del artículo secundario es cero, el artículo principal se puede abrir para agregar los artículos secundarios a la cantidad disponible. Este tema describe todos los pasos necesarios para configurar relaciones principal-secundario entre artículos en RMH.

## (Opcional) Configurar opciones de pedido de compra para artículos secundarios

1. Haga clic en **Configuración**.
2. Expandir **Inventario/Compras**.
3. Haga clic en **Configuración de pedidos**.
4. Seleccione **Reposición del artículo secundario**.
5. Haga clic en **Guardar y cerrar**.

## Configurar relaciones principal-secundario entre artículos

{% hint style="info" %}
Debe agregar tanto el artículo principal como el secundario a la base de datos de la tienda antes de poder crear una relación principal-secundario entre ellos.
{% endhint %}

1. Haga clic en **Mercadotecnia**.
2. Haga clic en **Artículos**.
3. Haga doble clic en el artículo secundario para abrirlo.
4. En la pantalla **Especial** pestaña, haga lo siguiente:
   1. Haga clic en el icono de exploración junto al **Artículo principal** campo y seleccione el artículo principal.
   2. En el **Cantidad secundaria** campo, introduzca la cantidad de artículos secundarios dentro del artículo principal.
5. Haga clic en **Guardar y cerrar**.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rmhpos.com/es/store-manager/manage-inventory/update-on-hand-quantities-with-parent-child-relationships/setting-up-parent-child-relationships.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
