Stock
What It Models
Stock records both physical goods and promises to buyers. Warehouses and locations organize items; movement and allocation ledgers explain balances. Counts and findings support investigation when the shelf and the records disagree.
Identity and Attributes
A stock item identifies a product and SKU at one location. Movements retain stable request keys and signed quantities. Allocations represent single units held for checkout, committed to an order, picked, shipped, backordered or released. Available stock is derived from the stored balances.
Relationships
Shipment lines refer to allocation units. Handoff and return disposition call the stock services rather than editing balances directly. Placement and cancellation participate through claim functions, and cost layers remain in the separately registered purchasing boundary.
Invariants
Database constraints prevent negative balances and restrict direct application writes. Transfers retain both ledger halves together. Counts use movements to correct differences, while reconciliation reports discrepancies rather than replacing balances.
How It Is Stored and Shared
Inventory owns warehouse, location, item, ledger, count and finding records. Shipping and the merchandise participant use its persistence for their work. Data operations introduces migrated opening stock through ledger entries. No custom fields are declared.
Open Design Questions
Product must settle purchasing and costing ownership and the staff surface for inventory findings. The pinned console provides no complete stock-management workspace.