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
| Action | Key | Label |
|---|---|---|
| View | md.unit_group.view | Item Unit Group - View |
| New unit group | md.unit_group.create | Item Unit Group - Create |
| Edit | md.unit_group.update | Item Unit Group - Update |
| Delete | md.unit_group.delete | Item 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:
| Field | Required | Rules |
|---|---|---|
| Code | Yes | Unique |
| Arabic name / English name | One of the two | (I4) |
| Description | No | — |
| Base unit | Yes | Must be one of the group's units |
| Active | — | On by default |
The Units of the group grid, in order:
| Column | Description |
|---|---|
| Unit | From 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 unit | Worked out by the system (read-only) |
Steps
Create a unit group
- Select New unit group.
- Enter the code and name.
- 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).
- 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.
- 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
| Message | Cause | What to do |
|---|---|---|
| A unit group needs at least one unit. | No lines | Add the units |
| Add the base unit as a line of the group (multiplier 1). | The base unit isn't among the lines | Add it |
| A unit appears twice. | Duplicate | Remove the duplicate |
| Two units have the same sequence. | Duplicate sequence | — |
| A unit factor must be greater than zero. | Zero or negative multiplier | Correct the multiplier |
| A unit factor has too many decimals (at most 12). | Too many decimal places | Round the multiplier |