> For the complete documentation index, see [llms.txt](https://docs.solutioo.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.solutioo.de/shopware/shopware6_en_us/price-and-inventory-management/inventory-calculation-and-locations.md).

# Inventory Calculation & Locations

The **inventory** transferred to Shopware is calculated based on your configuration.

**Options**

| Setting                           | Effect                                                   |
| --------------------------------- | -------------------------------------------------------- |
| **Location codes**                | Comma-separated BC locations whose inventory is added up |
| **Use default location**          | Ignores locations and uses a fixed inventory value       |
| **Default inventory quantity**    | Fixed inventory when the default location is enabled     |
| **Upload negative item quantity** | Transfers negative inventory; otherwise 0 is sent        |
| **Upload inventory**              | Master switch for the inventory upload                   |

**Out of stock**

The item field **Out of stock** sets an item to *out of stock* in Shopware regardless of the BC inventory.

{% hint style="info" %}
The **inventory** shown on the item results from the selected inventory settings. For configuration details, see [Inventory Configuration](/shopware/shopware6_en_us/configuration/basic-settings/inventory-configuration.md).
{% endhint %}

**Recommendation**

{% hint style="success" %}
Upload inventory regularly (for example, several times a day) using the Job Queue so that availability in the shop stays up to date.
{% endhint %}

### Frequently Asked Questions

#### How do I define which locations are included in the shop inventory?

In the “Location codes” setting, you enter the Business Central locations, separated by commas, whose inventory is added up and transferred to Shopware. Alternatively, you can use “Use default location” to apply a fixed inventory value independently of the locations.

#### How do I specifically set an item to “out of stock”?

The item field “Out of stock” flags the item as out of stock in Shopware regardless of the actual Business Central inventory. This is useful for temporarily making an item unavailable for ordering.

#### Is negative inventory transferred to Shopware?

Only if “Upload negative item quantity” is enabled. Otherwise, the value 0 is sent to Shopware when the inventory is negative, so that no misleading negative quantities appear in the shop.


---

# 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.solutioo.de/shopware/shopware6_en_us/price-and-inventory-management/inventory-calculation-and-locations.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.
