ARCNM Compare Calculations
arcnm_compare_calculationsRead-onlyIdempotent
Compare two calculations and explain the offer-price delta (the price each calculation headlines), with the unit-cost delta before surcharges beside it. Compares like with like: flags when the two used different lot sizes or costing environments, and states no delta across currencies. For the same part(s) across several rate environments use arcnm_compare_environments instead. Read-only — does not re-price.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calculation_id_a | Yes | ||
| calculation_id_b | Yes |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| note | Yes | ||
| guidance | No | What the delta means and what to do next (alias of note for naming consistency with the other tools). | |
| comparable | Yes | False if the two used different lot sizes, costing environments or currencies, or either is an assembly priced only in part — see incomparable_reasons for which. | |
| unit_cost_delta | No | b − a unit cost before the cost-sheet surcharges, per unit, in the shared currency; null across currencies and when either side is an assembly priced only in part. Secondary: it can point the other way from offer_price_delta when the two environments state different surcharges. | |
| offer_price_delta | No | b − a offer price, per unit, in the shared currency — the delta that says which option is cheaper. Null when the two are quoted in different currencies — there is no FX rail, so a cross-currency difference would be an invented number — and when either side is an assembly priced only in part. | |
| unit_time_delta_s | No | b − a, production seconds per unit — time beside cost, so a cheaper option that is slower (capacity impact) is visible. Null when either side is an assembly priced only in part. | |
| unit_cost_delta_pct | No | unit_cost_delta as % of a; null wherever it is. | |
| incomparable_reasons | No | Why comparable is false: lot_size_mismatch, environment_mismatch, currency_mismatch and/or assembly_partial (the same vocabulary the REST comparison matrix uses). Empty when comparable. | |
| offer_price_delta_pct | No | offer_price_delta as % of a; null wherever it is. |