Units and quantities
Every product has a base unit — the unit its stock is counted in, and the unit every rule compares against.
Units are a fixed list, not something you create. They are the international codes an e-invoice names a quantity with, so a quantity means the same thing to whoever receives the document.
Dimensions
Section titled “Dimensions”Each unit belongs to a dimension: count, mass, length, area, volume, duration, period, lump sum. Gram, kilogram and tonne are one dimension, so a quantity converts freely between them.
Quantities never convert across a dimension. An hour has no weight in kilograms. Duration (hour, day) and period (month, year) are separate dimensions too, because a month is not a fixed number of hours.
Which units a product can use
Section titled “Which units a product can use”A unit is valid for a product when it shares the product’s base-unit dimension. No other unit can carry a price or reach a document line, and the line’s unit field offers exactly that set.
So a product based in Kilogram can be priced in grams or tonnes, never in hours. A product based in Piece can be sold by the dozen.
Sales Unit on the product fills in the unit on new order and invoice lines. It is a starting point, not a restriction, and it has to share the base unit’s dimension like anything else.
Conversion and rounding
Section titled “Conversion and rounding”A converted quantity is rounded to six decimal places.
Prices are not rounded to cents anywhere. A price of 100 per dozen reaches a line sold
by the piece as 8.333333. See How a price is chosen.
A quantity that converts to zero is rejected rather than posted as nothing.
Where the base unit shows up
Section titled “Where the base unit shows up”- Stock is counted and displayed in it.
- Price tiers are compared in it, which is why “from 1 dozen” and “from 1 piece” are different thresholds.
- Fulfillment orders are written in it, whatever unit the sales line used.
- Picked Quantity on a sales order line is counted in it, so an order for one dozen reads as 12 pieces picked. Invoiced Quantity stays in the line’s own unit.
What locks
Section titled “What locks”Base Unit, Physical Product and Lot Tracked cannot be changed once any stock has moved for the product, so the stock history keeps its meaning.
Setting them is Products.