A Case cost
one row per SKU and effective dateRequired: sku, valid_from, units_per_case, and either variable_cost_case or the four components material, packaging, labor, inbound_freight. Optional: moq_cases, target_margin.
Two CSVs — what a case costs you, and what each account actually paid after deductions. You get the month's margin, the reason it moved, and the floor to quote next. Nothing leaves this browser.
Required: sku, valid_from, units_per_case, and either variable_cost_case or the four components material, packaging, labor, inbound_freight. Optional: moq_cases, target_margin.
Long format: line_id, buyer_id, sku, posted_on, kind, amount_usd, cases, with kind one of shipment or the six deduction kinds. Wide format: one shipment row with a column per deduction also works.
We recognised these columns. Anything wrong here will be wrong in every number after it — fix it before you continue.
Gross invoiced, minus every deduction, minus the cost of the cases that shipped — and what moved since last month.
| SKU | Last month | This month | Δ / case | Main driver | Signal | Decision | Last month's call |
|---|
Hold keeps the price; One-off records a deduction you expect not to repeat; Price change opens the sheet with the new floor. Next month the same table checks whether the decision was carried out.
| SKU | Cases | Invoiced / case | Deductions / case | Net / case | Cost / case | Contribution / case | Margin | vs target | Status |
|---|
Past deductions describe the past. A price only holds if it survives the allowances you have actually agreed. Leave a line as Not confirmed and the floor for that account stays closed.
| Deduction | How it is charged | Amount | What it does to the floor |
|---|
ceil( (v + f) / (1 − r) )The case price at which contribution is exactly zero after the rates and per-case fees above.
ceil( (v / (1 − m) + f) / (1 − r) )Where the case price has to sit so the contribution equals m of net revenue.
max(0, target − current)Never shown as revenue. It is the amount a price notice would have to carry.
v = variable cost per case · r = sum of percentage deductions · f = per-case fees + monthly fees ÷ expected cases · m = target contribution margin. Prices are rounded up to the cent; nothing else is rounded before display.
Floors for this account, the increase each one needs, and a buyer-facing sheet that carries prices only — never your cost or margin.
| SKU | Cases | Current / case | Cost / case | Break-even | Target floor | Increase | Margin now | Status |
|---|
The buyer-facing sheet is generated from a separate function that never receives cost or margin fields. There is no toggle that reveals them here.
Only SKUs that need an increase are listed. Allowances already agreed are stated as unchanged.
Every number here is arithmetic on two files you supplied. Where the files cannot support a number, the screen says so instead of filling the gap.
valid_from is the latest on or before the ship date.Cost file: one row per SKU per effective date. Ledger: long format with a kind column, or wide format with a column per deduction. A saved mapping is reused when the header row is unchanged; when it changes you are asked again.