{"ref":{"kind":"component","id":"corporate_inventory_valuation","key":"sha256:c4832cc27699853723cb94c24026ea84755c8c724d66607711eb25bc096ee3dd"},"label":"Inventory cost and reduced carrying basis","description":"Reconcile reference cost, attached reductions and net consumption without restoring impaired inventory.","inputs":[{"label":"Adjustments Cost","name":"adjustments.cost","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Adjustments Reserve","name":"adjustments.reserve","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Opening Cost","name":"opening.cost","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Opening Reserve","name":"opening.reserve","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Purchases","name":"purchases","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Sold Cost","name":"sold.cost","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Sold Reserve","name":"sold.reserve","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Write Downs","name":"write_downs","valueType":{"axes":[],"dtype":"f64","unit":"$"}}],"outputs":[{"label":"Change","name":"change","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Cost","name":"cost","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Cost Relief","name":"cost_relief","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Cost Shortfall","name":"cost_shortfall","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Disposal Excess","name":"disposal_excess","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Identity Residual","name":"identity_residual","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Income Effect","name":"income_effect","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Inventory","name":"inventory","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Negative Inputs","name":"negative_inputs","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Opening Excess","name":"opening_excess","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Reserve","name":"reserve","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Reserve Excess","name":"reserve_excess","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Reserve Shortfall","name":"reserve_shortfall","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Sold Cost","name":"sold_cost","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Working Noncash","name":"working_noncash","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Write Down Addback","name":"write_down_addback","valueType":{"axes":[],"dtype":"f64","unit":"$"}}],"dependencies":[{"id":"corporate_inventory_period","key":"sha256:b69532b42e801e61ab0c15a845cf4a80b3772c524865c84eb8ffe5bee02c7378","kind":"component"},{"id":"corporate_inventory_reserve_period","key":"sha256:f281b1d6e5b1873dc5dbcf94fddbeb72288778037e940caf7c1601f61cc9977c","kind":"component"}],"libraries":["corporate_inventory"],"notes":{"conventions":["Cost is a consistently supplied reference basis before the selected reduction ledger; reserve is its contra amount. Do not mix gross original cost and an already reduced carrying basis.","Purchases add to reference cost. Sold cost and its attached prior reduction are supplied for the same disposed goods; their difference is the cost expensed.","The caller admits the timing and allocation of write-downs and disposals. Used reductions cannot exceed disposed reference cost or the reduction ledger available in the period.","No cost allocation, weighted-average unit price, recoverable-value estimate or automatic recovery markup is calculated.","The net inventory noncash adjustment includes new write-downs and identified non-income changes, not the reduction used on disposed goods.","Negative stocks, reductions beyond reference cost and excessive disposal allocations remain diagnostics; they are not clamped or financed."]},"calculation":{"nodes":[{"id":"input-adjustments.cost","label":"Adjustments Cost","kind":"input"},{"id":"input-adjustments.reserve","label":"Adjustments Reserve","kind":"input"},{"id":"input-opening.cost","label":"Opening Cost","kind":"input"},{"id":"input-opening.reserve","label":"Opening Reserve","kind":"input"},{"id":"input-purchases","label":"Purchases","kind":"input"},{"id":"input-sold.cost","label":"Sold Cost","kind":"input"},{"id":"input-sold.reserve","label":"Sold Reserve","kind":"input"},{"id":"input-write_downs","label":"Write Downs","kind":"input"},{"id":"step-value0","label":"(Adjustments Cost − Adjustments Reserve)","kind":"step","rule":"(Adjustments Cost − Adjustments Reserve)","sources":[{"node":"input-adjustments.cost"},{"node":"input-adjustments.reserve"}]},{"id":"output-opening_excess","kind":"output","label":"Opening Excess","rule":"Higher of (Opening Reserve − Opening Cost) and 0","sources":[{"node":"input-opening.reserve"},{"node":"input-opening.cost"}]},{"id":"step-cost","label":"Cost","kind":"step","rule":"Result of Inventory roll-forward","sources":[{"node":"input-adjustments.cost"},{"node":"input-opening.cost"},{"node":"input-purchases"},{"node":"input-sold.cost"}],"calls":[{"component":"corporate_inventory_period","purpose":"Separate inventory acquisition, expensing, impairment and non-income movements.","label":"Inventory roll-forward","bindings":[{"name":"adjustments","label":"Adjustments","value":"Adjustments Cost"},{"name":"opening","label":"Opening","value":"Opening Cost"},{"name":"purchases","label":"Purchases","value":"Purchases"},{"name":"sold","label":"Sold","value":"Sold Cost"},{"name":"write_downs","label":"Write Downs","value":"0"}]}]},{"id":"step-sold_cost","label":"Sold Cost","kind":"step","rule":"(Sold Cost − Sold Reserve)","sources":[{"node":"input-sold.cost"},{"node":"input-sold.reserve"}]},{"id":"output-disposal_excess","kind":"output","label":"Disposal Excess","rule":"Higher of (Sold Reserve − Sold Cost) and 0","sources":[{"node":"input-sold.reserve"},{"node":"input-sold.cost"}]},{"id":"step-reduction","label":"Reduction","kind":"step","rule":"Result of Inventory basis reductions","sources":[{"node":"input-adjustments.reserve"},{"node":"input-opening.reserve"},{"node":"input-sold.reserve"},{"node":"input-write_downs"}],"calls":[{"component":"corporate_inventory_reserve_period","purpose":"Track a selected inventory cost-basis reduction through recognition and disposal.","label":"Inventory basis reductions","bindings":[{"name":"adjustments","label":"Adjustments","value":"Adjustments Reserve"},{"name":"opening","label":"Opening","value":"Opening Reserve"},{"name":"used","label":"Used","value":"Sold Reserve"},{"name":"write_downs","label":"Write Downs","value":"Write Downs"}]}]},{"id":"output-write_down_addback","kind":"output","label":"Write Down Addback","rule":"Write Downs","sources":[{"node":"input-write_downs"}]},{"id":"output-working_noncash","kind":"output","label":"Working Noncash","rule":"((Write Downs × -1) + (Adjustments Cost − Adjustments Reserve))","sources":[{"node":"input-write_downs"},{"node":"step-value0"}]},{"id":"output-cost","kind":"output","label":"Cost","rule":"Cost · Closing","sources":[{"node":"step-cost","field":"closing","fieldLabel":"Closing","url":"/catalog/components/corporate_inventory_period/#output-closing"}]},{"id":"output-cost_shortfall","kind":"output","label":"Cost Shortfall","rule":"Cost · Shortfall","sources":[{"node":"step-cost","field":"shortfall","fieldLabel":"Shortfall","url":"/catalog/components/corporate_inventory_period/#output-shortfall"}]},{"id":"output-income_effect","kind":"output","label":"Income Effect","rule":"((Sold Cost × -1) − Write Downs)","sources":[{"node":"step-sold_cost"},{"node":"input-write_downs"}]},{"id":"output-sold_cost","kind":"output","label":"Sold Cost","rule":"Sold Cost","sources":[{"node":"step-sold_cost"}]},{"id":"step-inventory","label":"Inventory","kind":"step","rule":"(Cost · Closing − Reduction · Closing)","sources":[{"node":"step-cost","field":"closing","fieldLabel":"Closing","url":"/catalog/components/corporate_inventory_period/#output-closing"},{"node":"step-reduction","field":"closing","fieldLabel":"Closing","url":"/catalog/components/corporate_inventory_reserve_period/#output-closing"}]},{"id":"output-cost_relief","kind":"output","label":"Cost Relief","rule":"Reduction · Cost Relief","sources":[{"node":"step-reduction","field":"cost_relief","fieldLabel":"Cost Relief","url":"/catalog/components/corporate_inventory_reserve_period/#output-cost_relief"}]},{"id":"output-negative_inputs","kind":"output","label":"Negative Inputs","rule":"(Cost · Negative Inputs + Reduction · Negative Inputs)","sources":[{"node":"step-cost","field":"negative_inputs","fieldLabel":"Negative Inputs","url":"/catalog/components/corporate_inventory_period/#output-negative_inputs"},{"node":"step-reduction","field":"negative_inputs","fieldLabel":"Negative Inputs","url":"/catalog/components/corporate_inventory_reserve_period/#output-negative_inputs"}]},{"id":"output-reserve","kind":"output","label":"Reserve","rule":"Reduction · Closing","sources":[{"node":"step-reduction","field":"closing","fieldLabel":"Closing","url":"/catalog/components/corporate_inventory_reserve_period/#output-closing"}]},{"id":"output-reserve_excess","kind":"output","label":"Reserve Excess","rule":"Higher of (Reduction · Closing − Cost · Closing) and 0","sources":[{"node":"step-reduction","field":"closing","fieldLabel":"Closing","url":"/catalog/components/corporate_inventory_reserve_period/#output-closing"},{"node":"step-cost","field":"closing","fieldLabel":"Closing","url":"/catalog/components/corporate_inventory_period/#output-closing"}]},{"id":"output-reserve_shortfall","kind":"output","label":"Reserve Shortfall","rule":"Reduction · Shortfall","sources":[{"node":"step-reduction","field":"shortfall","fieldLabel":"Shortfall","url":"/catalog/components/corporate_inventory_reserve_period/#output-shortfall"}]},{"id":"step-change","label":"Change","kind":"step","rule":"(Inventory − (Opening Cost − Opening Reserve))","sources":[{"node":"step-inventory"},{"node":"input-opening.cost"},{"node":"input-opening.reserve"}]},{"id":"output-inventory","kind":"output","label":"Inventory","rule":"Inventory","sources":[{"node":"step-inventory"}]},{"id":"output-change","kind":"output","label":"Change","rule":"Change","sources":[{"node":"step-change"}]},{"id":"output-identity_residual","kind":"output","label":"Identity Residual","rule":"((((Change − Purchases) + Sold Cost) + Write Downs) − (Adjustments Cost − Adjustments Reserve))","sources":[{"node":"step-change"},{"node":"input-purchases"},{"node":"step-sold_cost"},{"node":"input-write_downs"},{"node":"step-value0"}]}],"topics":[{"label":"Inventory cost and reduced carrying basis","results":["output-change","output-disposal_excess","output-identity_residual","output-income_effect","output-inventory","output-negative_inputs","output-opening_excess","output-reserve_excess","output-sold_cost","output-working_noncash","output-write_down_addback"]},{"label":"Inventory roll-forward","results":["output-cost","output-cost_shortfall"]},{"label":"Inventory basis reductions","results":["output-cost_relief","output-reserve","output-reserve_shortfall"]}]},"usedBy":[]}
