inventories
Inventories are defined in the registry and represent physical or logical stock locations. Each inventory has a unique key and a display label.
Each inventory key can only contain a-z, 0-9, and _. The first character must be non-numeric.
Properties
| Property | Type | Description |
|---|---|---|
label | string or object | Display label for the inventory. Can be a simple string or a localized object with locale keys (e.g., default, sv). |
Additional properties may be added by installed apps. By convention, apps prefix their fields with their app name to avoid collisions (e.g., nshift_warehouseId).
Inventories automatically provide enum values for inventoryKey fields on deliveries and stock positions. The label is used as the dropdown display text. Custom graph fields may reference inventories by specifying values: "inventories".
Example
yaml
uri: /registry/inventories/wh_stockholm
spec:
value:
label: Warehouse StockholmWith localization:
yaml
uri: /registry/inventories/wh_stockholm
spec:
value:
label:
default: Warehouse Stockholm
sv: Lager Stockholm