Functional contract

Inventory

On-hand stock is per Location and shipped at /app/inventory (inventory.read; adjustments and status moves need inventory.manage at that Location). Purchasing identity is per Legal Entity. Catalog identity is per Organization. A unit at Location A never decrements Location B.

On-hand, allocation, holds, kardex shipped Bundle stock shipped Transfers and POs not built Updated 3 Nov 2026

Stock control

Each catalog item has a master stock_control (not a Location override):

ModeBehavior
No control (none)No stock rows. Absent from Inventory. Default for services. Always for bundles
Control without batch (quantity)One on-hand integer per Location. Default for products
Control with batch (batch)On-hand is the sum of lots (lot number, optional expiry, quantity). Adjustments must name a lot. batch_strategy: fifo (default, oldest created), lifo (newest), fefo (earliest expiry; every lot needs expires_on)

Stock quantities

QuantityMeaning
On handPhysical quantity at the Location (location_stocks or sum of lots)
AllocatedRounded quantities on open sales-order lines for the item at this Location
HeldUnits set aside in location_stock_holds: Reserved (optionally for a client or an open sales order here), On hold, or Quarantine
Availableon hand − allocated − held (may be negative)

Holds and status moves

Bundles

Adjustments and kardex

Transfers between Locations

Not built Sites in the same Organization move stock with a documented transfer. Traceability: who sent, who received, what, how many, when.

StepBehavior
CreateSource Location (or an Organization admin) starts a transfer to another Location in the same Organization
In transitLeft the source; not yet available at the destination
ReceiveDestination confirms; quantity becomes on hand there
Cancel / rejectStock returns to the source; no silent disappear

No client invoice. Same Legal Entity: internal transfer. Different Legal Entities: still a transfer; intercompany cost out of scope. Never to another Organization.

Purchase orders

Not built Issued in the name of a Legal Entity.

Visibility

ActorSees
Organization adminOn-hand at every Location; later all transfers and POs
Location manager / staffOn-hand (later transfers and receipts) for granted Locations only
Other LocationsNot each other's quantities, except on a shared transfer

Acceptance

Out of scope: reorder points, lot recalls, controlled-substance registers, vendor EDI, intercompany invoices for cross-EIN transfers.