MeasurementUnit
A measurement unit: a unit that measures a quantity, for example kilogram, litre or metre, with its conversion to a base unit.
MeasurementUnitFields
The ID of the measurement unit.
The short form shown next to quantities, for example 'kg'.
The name in the default language.
The code of a predefined measurement unit: the units Wawi ships with (UCUM codes such as 'kg' or '[lb_av]') and those created by the synchronisation with a shop. Empty for units created by users.
Whether this is a system measurement unit, one with a predefined code. System measurement units cannot be deleted, and their display code and their name in the default language cannot be changed.
The UN/CEFACT unit code shown on e-invoices for items with this measurement unit, for example 'KGM'. Values stored before can be of any format; a value written through the API has 2 or 3 letters or digits (see 'QueryUnitCodes'). Empty when none is set.
The ID of the base unit of the family this unit belongs to; the unit itself for a base unit. Two measurement units convert into each other when their base unit is the same.
How this unit converts to its base unit. Empty for a base unit. To convert a quantity from unit a to unit b of the same family, multiply it by factor(a) / factor(b), where a base unit counts as 1.
The names, one per language. Always contains the default language.
Was this page helpful?