All articles

reporting · accounting · operations

Line-item profitability fields you must capture

A practical checklist of the product, costing, discount, freight, commission and allocation fields to store on quotes, orders and invoices so line-level margin reflects reality.

The Blue Cimarron Team · · 6 min read

Most margin reports that say “line-item profitability” are only as good as the fields captured earlier in the sales flow. Missing or mis-applied fields at quote, order, or invoice time force downstream accountants and analysts to guess where margin actually came from.

This post lists the specific fields you need to capture on each line across CRM quotes, sales orders and invoices, shows where to reconcile those values, and calls out the common configuration mistakes that produce misleading line-level profit. There’s a short worked example so you can see the arithmetic end-to-end.

Core product and costing fields to capture

At minimum, every sales line must carry a stable product identifier, the unit of measure, quantity, and the unit sale price. Those are obvious; the less obvious fields are the ones accountants need to attribute cost back to the line.

Capture these fields on the line itself (not just on the product master):

  • Product SKU / item ID and description (immutable reference to the product master at sale time).
  • Inventory valuation method in effect for the item (standard, weighted-average, FIFO) and the effective cost date if costs changed recently.
  • Unit cost used to compute line COGS (explicit numeric field) and a cost source flag (e.g., 'standard-cost', 'lot-cost', 'average-cost', 'purchase-invoice').
  • Landed cost per unit or link to a landed cost allocation batch (if you capitalise freight/duty into inventory).
  • Bill of Materials (BOM) reference where the sold item is an assembly and a breakdown of component costs is required.
  • Cost variance or adjustment reference (link to the variance journal or adjustment batch) when actual issued cost differs from stored unit cost.
Store the cost and its source on the sales line at the time of the transaction; don’t rely on recalculating from today’s cost later.

Discount and price adjustment fields

If an order-level promotion reduces the invoice total, the ERP must store how that reduction was allocated back to individual lines. That allocation method must be auditable and repeatable; otherwise your line margin becomes an arbitrary split.

  • List price (catalog or contract price) and unit sale price before any order-level allocation.
  • Explicit discount amount and discount type (percentage or absolute), plus a discount reason code and reference to the contract or promo.
  • Manual price override flag and user ID, so you can distinguish negotiated customer pricing from system price rules.
  • Allocation key when order-level discounts or promotions exist (e.g., allocate by revenue, quantity, weight, or custom key).

Freight, tax, and surcharge fields

If your freight is allocated by weight, the system must store line weight or a link to the product weight at transaction time so allocation can be recomputed reliably when needed.

  • Freight amount and freight allocation method (none, per-line fixed, proportional to weight, proportional to revenue, custom).
  • Freight payer and whether freight is included in price (affects whether freight is part of revenue or cost accounting).
  • Tax amount and tax basis per line (taxable amount) and tax recovery flag if tax is refundable to the business.
  • Surcharge/duty amount and allocation link to lines when duties are capitalised into inventory cost.

Commissions and sales credit fields

Record commissions as an operating expense line linked to the sales line, not as a reduction to revenue or COGS, unless your accounting policy specifically requires otherwise. That preserves gross margin clarity.

  • Commissionable amount and commission rate (explicit), plus commission plan ID and salesperson ID.
  • Commission adjustment or clawback reference and whether commission is reversible on return/credit memo.
  • Timing rule for commission recognition (on invoice, on cash receipt, or net after returns) and the payable account reference.

Allocations, overheads and shared cost fields

Keep allocation batches auditable: they should reference the expense journal entries they distribute and include the formula used. That makes it possible to rerun allocations with the same inputs when reconciling.

  • Allocation tag or bucket ID per line to receive proportionate shares of shared costs.
  • Allocation basis value (e.g., weight, volume, revenue, or quantity) replicated on each line so allocations can be recalculated without external lookups.
  • Overhead per-unit or per-bucket amount and link to the allocation batch or period.

Worked example: two-line order and the math

Step 1 — compute line net sales: SKU A net = 10 × 90 = 900. SKU B net = 5 × 180 = 900. Invoice net sales total = 1,800.

Step 2 — allocate freight by weight. Total weight = (10×2) + (5×10) = 20 + 50 = 70 kg. Freight per kg = 100 / 70 ≈ 1.4286. Freight allocated: SKU A freight = 20 × 1.4286 ≈ 28.57; SKU B freight = 50 × 1.4286 ≈ 71.43.

Step 3 — allocate warranty reserve by revenue. Revenue split is 50/50, so warranty per line = 25 each.

Step 4 — compute line COGS and gross margin before commission: SKU A COGS = 10×60 + 28.57 + 25 = 600 + 28.57 + 25 = 653.57; SKU A gross = 900 − 653.57 = 246.43. SKU B COGS = 5×140 + 71.43 + 25 = 700 + 71.43 + 25 = 796.43; SKU B gross = 900 − 796.43 = 103.57.

Step 5 — commissions (5% of invoice net sales = 90). Allocate commission back to lines proportional to net sales (50/50): SKU A commission = 45; SKU B commission = 45. If commissions are treated as operating expense, subtract from operating margin rather than gross margin; if your policy requires commission be excluded from gross margin, keep it out of line COGS.

Result — validated arithmetic and traceability: each line shows original list and sale price, cost source, explicit freight and warranty allocations, and the commission linkage. That allows meaningful line-level margin comparisons and audits.

  • SKU A: unit list price 100, unit sale price 90 (10% line discount), unit cost 60, weight 2 kg.
  • SKU B: unit list price 200, unit sale price 180 (10% line discount), unit cost 140, weight 10 kg.
  • Order-level freight = 100 charged on the invoice; allocation method = by weight. Commission = 5% of invoice net sales, payable on invoice unless returned. Shared warranty reserve = 50 to be allocated by revenue.

Reconciliation points and common misconfigurations

A single pull of the data model for line-profit should include sale-side fields, cost-side fields and allocation metadata. If any of those three are missing, your “line profit” numbers will be approximations at best.

  • Overwriting unit cost on invoice with today’s cost instead of the effective cost at the time of pick/issue; fixes: store cost source and effective date on the sales line and post COGS from inventory issue transactions.
  • Storing only a net invoice amount without preserving original list price and discount details; fix: capture list price, sale price, discount amount/type and allocation key.
  • Posting freight to a generic expense without allocating to lines; fix: create freight allocation batches and store the allocation basis on lines.
  • Linking credit memos to invoices by total amount but not to original lines; fix: require credit memos to reference original sales lines or include a clear allocation method so returns can reverse the same cost and revenue items.

What to do next

Audit a recent month of transactions end-to-end. For a sample of quotes, orders and invoices verify that every sales line has the product identifier, unit cost and cost source, list and net price, allocation keys, and links to freight/commission batches. Where fields are missing, capture them at the earliest touchpoint (quote or order).

In your ERP or CRM, implement the fields and allocation batches described here in the object model, then run the worked-example type report for a few real orders and reconcile them to the GL and inventory issues. That process will expose the configuration gaps to fix before you trust automated line-level margin dashboards.

Keep reading