On this page

Unit groups ​

Purpose ​

A unit group is a chain of related units linked by conversion factors, such as piece → box (12 pieces) → carton (10 boxes). You define it once for the whole organization.

Where to find it ​

  • Menu: Master data → Unit groups.
  • URL: /md/unit-groups

Permissions ​

ActionKeyLabel
Viewmd.unit_group.viewItem Unit Group - View
New unit groupmd.unit_group.createItem Unit Group - Create
Editmd.unit_group.updateItem Unit Group - Update
Deletemd.unit_group.deleteItem Unit Group - Delete

Fields ​

The groups table shows Code, Name, Base unit, Lines and Active. You can filter it by code and English name.

The New unit group and Edit unit group dialogs:

FieldRequiredRules
CodeYesUnique
Arabic name / English nameOne of the two(I4)
DescriptionNo—
Base unitYesMust be one of the group's units
Active—On by default

The Units of the group grid, in order:

ColumnDescription
UnitFrom units. Required, and can't repeat
Multiplier (previous unit)How many of the previous unit are in this unit. Greater than zero, up to 12 decimal places
Base units per unitWorked out by the system (read-only)

Steps ​

Create a unit group ​

  1. Select New unit group.
  2. Enter the code and name.
  3. In Units of the group, enter the units from smallest to largest, each with its Multiplier (previous unit). For example: piece (1), box (12), carton (10).
  4. Choose the Base unit (such as piece). If it isn't a line in the group, it's added at the top with a multiplier of 1.
  5. Base units per unit updates as you type: box = 12, carton = 120. Select Save.

Business rules ​

  • Each line's multiplier is relative to the line before it. Lines after the base unit are multiplied by their multiplier, and lines before it are divided by it. The result is rounded to 12 decimal places, with halves rounded away from zero (D6).
  • The base unit's factor is always 1.
  • The multiplier can't be negative.
  • Inside the lines grid, Esc only cancels editing the cell. If the dialog has unsaved changes, you're asked before it closes.
  • Two lines can't have the same sequence, and a unit can't appear twice.

Common error messages ​

MessageCauseWhat to do
A unit group needs at least one unit.No linesAdd the units
Add the base unit as a line of the group (multiplier 1).The base unit isn't among the linesAdd it
A unit appears twice.DuplicateRemove the duplicate
Two units have the same sequence.Duplicate sequence—
A unit factor must be greater than zero.Zero or negative multiplierCorrect the multiplier
A unit factor has too many decimals (at most 12).Too many decimal placesRound the multiplier