W108: Get finished goods inventory summary
Returns current on-hand, demand, allocated, and available quantities per SKU and location. Triggered from the Finished Goods Inventory page. Richer than the materials summary because of the DEMAND and ALLOCATE rollups from the SO lifecycle.
Steps
-
Aggregate from the ledger. Call
FinishedGoodsInventory.getSummary(filters), which returns rows of{ skuId, locationId, onHand, demand, allocated, available }. -
Batch-hydrate names. Resolve SKU and location names in single batched calls.
Returns
Aggregated rows with names hydrated.
Business rules
available = onHand - allocated. The field sales ops actually plan against; computed by the L2 summary.- Computed on demand, no cache. Same caching story as the materials summary (W101).
Errors
None.