Movement Composer
Preview Release Impact
Dry-run preview: given a receipt payload, compute which pending backorder allocations would be released once the movement is committed.
Preview Demotion Impact
Dry-run preview: given an outbound/adjust-down payload, compute which allocations (unallocated, soft-allocated, hard-allocated) would be consumed, and whether any hard-allocated fulfillments will require an explicit void confirmation before commit.
Commit Movement
Atomic commit of a composed movement: creates inventory adjustments, persists lot/serial detail, and triggers allocation release or demotion — all inside one DB transaction. When an outbound demotion consumes hard-allocated stock, each confirmed shipping label is voided in the same transaction (the fulfillment's inventory is reversed back to on-hand, its FulfillmentOrder budget reopened, and the shipment marked canceled).
Preview Chain Discrepancy
Preview the FIFO chain impact of proposed inbound lines BEFORE committing them. When a proposed entry is dated earlier than existing consumption in its product/warehouse pool, true chronological FIFO would have consumed the new stock first — this endpoint reports which later transactions would be re-anchored (and their cost changes) if the operator opts into `rechain_affected` on the commit.
Preview Chain Re-date
Preview the FIFO chain impact of RE-DATING existing stock layers to a proposed date (e.g. editing a receipt's or adjustment's date). Reports which later transactions would be re-anchored to keep true chronological FIFO, per affected product/warehouse/condition pool.