W106: Adjust inventory
Records a positive correction to finished-goods on-hand. Triggered from the Finished Goods Inventory page, "Adjust". Mirrors the materials equivalent (W099).
Steps
-
Validate the SKU and location. Confirm both exist.
-
Write the ADJUST ledger entry. Call
FinishedGoodsInventory.recordAdjustment({ skuId, locationId, quantity, eventDate, notes }).quantityis positive (per the L1quantity > 0invariant).refis null on ADJUST rows.
Returns
The ledger entry.
Business rules
- Adjustments are unrefed by design.
- ADJUST is inflow-only. Reductions go through W107 (Dispose); the L1 enum splits the two.
Errors
NotFoundError. The SKU or location was not found.