Site Items (ITM)
The itm submodule of inv owns the per-(site, item) configuration that says how an item is stocked, ordered, and sourced at each site — minimum stock and order quantities, default location reference, label count, and the workflow team responsible for material handling. It also defines a small family of in-memory QuantityRecord value types other inventory submodules use to carry composite (pieces + quantity + UoM) figures around. It depends on inv.loc for the site and cat.itm for the item.
Concepts
Site ItemA configuration row for one item at one site. Records the planning policy (order system / order policy / sourcing type), thresholds (minimum stock, minimum order), and the default storage location reference and material team for material handling.
Item Order SystemWhether the item is planned by MRP, by statistical inventory control (SIC), or manually.
Item Order PolicyWhether the item is replenished anonymously to stock or is ordered to a specific demand.
Item Sourcing TypeWhere the item comes from — purchase, manufacturing, or distribution.
Quantity RecordAn in-memory value type bundling pieces, quantity, and UoM. Three variants exist:
QuantityRecord(UoM-code),QuantityRecord2(with a fullUomentity), andSimpleQuantityRecord(no UoM).EconomicQuantityRecordaggregates three of them for on-order, on-hand, and allocated.
Entities
Site Item (SiteItem)
A per-(site, item) stocking configuration.
| Field | Description |
|---|---|
| Owning site (composite business key with |
| The catalogue item (final). |
| Optional number of labels printed per unit. Default |
| Optional default storage location reference at the site. |
| Optional minimum-stock threshold below which replenishment is needed. |
| Optional minimum-order threshold a replenishment must satisfy. |
| Planning system — see Order Systems below. |
| Replenishment policy — see Order Policies below. |
| Where the item comes from — see Sourcing Types below. |
| Optional workflow team responsible for material handling. |
Order Systems (ItemOrderSystem)
| Code | Name | Meaning |
|---|---|---|
| MRP | Planned by Material Requirements Planning. |
| Manual | Planned manually (replenishment decided per case). |
| SIC | Statistical Inventory Control — for items without planned demand (floorstock, consumables). |
Order Policies (ItemOrderPolicy)
| Code | Name | Meaning |
|---|---|---|
| Anonymous | Replenished to stock; not tied to a specific demand. |
| To-order | Replenished against a specific order. |
Sourcing Types (ItemSourcingType)
| Code | Name | Meaning |
|---|---|---|
| Purchase | Bought from a supplier. |
| Manufacturing | Produced internally. |
| Distribution | Distributed from another site. |
Functionality
Mandatory site-item lookup
INV_ITM_QueryApi.getSiteItemMandatory returns the SiteItem row for a (site, item) pair, raising a business exception when the row does not exist. Used by every flow that needs to know how the item is stocked at the site (stock issue, receipt, replenishment plan, …).
Site-item copy
SiteItemWriterService.copyAndPersistSiteItems clones every SiteItem row of an existing item and re-persists it under a new item, preserving the planning configuration (order system / policy / sourcing type), label count, location reference, and material team. Used by INV_ITM_CommandApi.copyAndPersistSiteItems when an item is duplicated at the catalogue level.
Public API
INV_ITM_QueryApi
Read-side facade.
| Method | Description |
|---|---|
| Returns the |
INV_ITM_CommandApi
Write-side facade.
| Method | Description |
|---|---|
| Copies every site-item row of an existing item to a new item and persists the copies. |
Quantity record value types
Other inventory submodules consume the QuantityRecord, QuantityRecord2, SimpleQuantityRecord, and EconomicQuantityRecord value types from this package directly — they are not entities and they are not exposed through the query/command API.
ViewModel actions
The submodule defines a view model for SiteItem but does not declare any custom UI actions.