Skip to content

How a price is chosen

The same product can carry a price for everyone, a better one for a customer group, a negotiated one for one customer, bulk scales, and a validity window. One rule picks the winner and puts it on the line.

There is no separate price list. A product’s price list is every price that names the product.

A product, a currency and a unit, with scales: amounts by the quantity they apply from. Plus optional scoping: a partner or a partner group, never both; and a validity window with either end open.

Every price for the product is considered, and a candidate survives only if it is

  • valid on the document’s date,
  • in the document’s currency, exactly,
  • in scope for the customer, and
  • reached by the line’s quantity: at least one scale applies.

Each survivor’s amount comes from the highest scale the line’s quantity reaches, compared in the price’s own unit: a line of 15 pieces reaches a scale “from 1 dozen”.

Among the survivors, the most specific wins: a price for the customer beats one for their group, which beats one for everyone. Between equally specific prices, the cheaper one wins.

When nothing survives, no price is written and the price already on the line stays. Dropping a line’s quantity below every scale keeps the price it was given; it does not revert and it does not empty.

Pricing is as of the document’s date, never today. A back-dated document prices at the rates valid then, and re-opening last year’s order does not re-price it at this year’s rates.

A typed unit price stands until the line is priced again. Changing the line’s product, unit or quantity, or the document’s customer or date, prices the line again and replaces what was typed.

Bulk scales depend on this: changing the quantity has to re-price the line. A price that has to last belongs in a sales price.

A price carries no discount, and no discount is filled in automatically. A line’s Discount is a percentage entered by hand:

line amount = quantity × unit price
net amount = line amount × (1 − discount / 100)

The document’s totals are the sums of those two columns.

Nothing in the price path rounds to a currency’s cents — not the lookup, not the line amounts, not the totals. A price of 100 per dozen reaches a line sold by the piece as 8.333333, not 8.33.

Creating prices is Sales prices.