> 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/store-manager/manage-inventory/update-on-hand-quantities-with-parent-child-relationships/understanding-parent-child-items.md).

# About parent-child inventory control

You should create a parent-child relationship between items in RMH if store employees can "open up" or "break open" the parent item to restock shelves with the child item. If a parent-child relationship exists between items and the available quantity of the child item is zero (0), when a customer purchases the child item at POS, RMH automatically recognizes that the parent item has been opened up and adjusts the available quantities of both the child and parent items accordingly.

## Scenario 1: Printer paper

The store sells printer paper by the case and by the ream. Each case contains 10 reams (individual packages). There are currently 5 cases of printer paper in stock, but no reams (i.e., the available quantity of reams is zero).

A customer comes into the store and wants to purchase 2 reams of printer paper, so an employee opens up one of the cases of printer paper, gives 2 reams to the customer, and restocks the shelf with the remaining 8 reams. Because the items are set up with a parent-child relationship, when the customer purchases the 2 reams of printer paper at POS, RMH automatically recognizes that a case was opened up. The available quantity of cases is adjusted to 4 and the available quantity of reams is adjusted to 8.

## Scenario 2: Wine

The store sells wine by the case and by the bottle. Each case contains 12 bottles. There are currently 10 cases of wine in stock, but no bottles (i.e., the available quantity of bottles is zero).

A customer comes into the store and wants to purchase 2 cases of wine and 6 individual bottles, so an employee opens up one of the cases of wine, gives 6 bottles to the customer, and restocks the shelf with the remaining 6 bottles. Because the items are set up with a parent-child relationship, when the customer purchases the 2 cases of wine and the 6 individual bottles at POS, RMH automatically recognizes that a case was opened up. The available quantity of cases is adjusted to 7 and the available quantity of bottles is adjusted to 6.

## Ordering and costs

If you create a parent-child relationship between items, the cost of the child item is updated automatically after you create and receive a purchase order containing the parent item. This is because it is usually more cost-effective to order the parent item and break it open to restock the child item. RMH calculates the cost of the child item as follows: cost of the parent item / child quantity.

{% hint style="info" %}
The child item cost calculation is not connected to the **Cost Update Method** selected under **File** | **Configuration** | **Inventory rules**. However, the cost of the parent item may be updated based on the selected Cost Update Method.
{% endhint %}


---

# 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://docs.rmhpos.com/store-manager/manage-inventory/update-on-hand-quantities-with-parent-child-relationships/understanding-parent-child-items.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.
