Skip to main content

Cost Change Inbox

📄️Get Cost Change

Returns one cost change set with its staged lines (one per FIFO layer: unit cost before and after, units on hand and already consumed at staging time, the original receipt date), its decision history, the restate-versus-prospective impact comparison (`impact`, the same payload as Get Impact Preview) and `what_changed` - every cost document on the originating purchase order, dated both by document date and by the day it was entered, so the delta can be read against its sources. `what_changed` is null when the trigger cannot be traced back to a purchase order.

📄️Get Impact Preview

Returns the side-by-side comparison a reviewer decides from. Each row in `periods` is one accounting month with what each convention books there: restating puts the delta back where the stock was received (`restate_valuation_impact` on Inventory for every unit received, then each unit already sold moves from Inventory to cost of goods in the month it shipped, as `restate_cogs_impact`), while going forward books the whole delta as one dated catch-up (`prospective_impact`, split into `prospective_valuation_impact` and `prospective_cogs_impact`). Both sides add back to the set's total delta. `locked` and `closed` mark the period's accounting status; `clamped_to` is the first open day a locked period's write would be displaced to.

📄️Get Impact Tree

Returns one FIFO layer's cost genealogy for the change: what valued it (the purchase order's base cost, then every invoice, bill and correction that reached the line, stepping the unit cost from before to after), where its units are (still on hand, or consumed by sales orders, assemblies and transfers), the layers built from it (kits, with their own usages) and the accounting month each part lands in under either dating (`lands.restate` and `lands.prospective`, each with the period, day, account and period status: open, closed or locked).