# Unit of Measure Quantity Rounding

This feature automatically rounds the purchase quantities suggested in the requisition worksheet so that they match whole packages (alternative units of measure of the item, such as boxes or cartons).

Rounding occurs only when the remainder exceeding a whole package is above a percentage threshold. For example, with a 12-piece package and a 50% threshold, a quantity of 20 pieces (12 + 8, i.e. 8/12 = 67% of a package) is rounded up to 24, while a quantity of 15 pieces (12 + 3, i.e. 25%) stays at 12 for the package-rounded part.



On the **General** FastTab of the **Purchases & Payables Setup** page:

| Field | Description |
|---|---|
| UoM Rounding Threshold % | Percentage of a package above which the remaining quantity is rounded up to the next whole package. If blank, no rounding is applied. |
| Purchase Rounding | Default rounding mode for all items: blank (no rounding), **Optional** or **Always**. |


On the **Item Card**, next to the **Purch. Unit of Measure** field:

| Field | Description |
|---|---|
| Purchase Rounding | Item-specific rounding mode: blank, **Optional** or **Always**. If blank, the value from the purchases setup is used. |


On the **Item Units of Measure** page (opened from the item card):

| Field | Description |
|---|---|
| Purchase Rounding | Specifies that the unit of measure is used as a package when rounding purchase quantities. Only units with a quantity per unit of measure greater than 1 are considered. |


If item ranking is in use, the **Item Ranking** page provides the field:

| Field | Description |
|---|---|
| Purchase UoM Rounding Threshold % | Threshold specific to items with this ranking code. If filled in, it replaces the threshold from the purchases setup. |


| Value | Behavior |
|---|---|
| (blank) | No rounding. |
| Optional | In the worksheet, when you enter a quantity manually, the system asks for confirmation before rounding it. In the automatic replenishment calculation, the quantity is rounded only if the result is higher than the calculated quantity. |
| Always | The quantity is rounded without asking, both on manual entry and in the automatic calculation. |


1. The system considers the item's units of measure marked with **Purchase Rounding**, starting from the largest package.
2. For each package it takes the number of whole packages contained in the quantity.
3. If the remaining quantity exceeds the threshold percentage of the package, one more whole package is added.
4. Any remainder is processed with the next, smaller package.


- **Threshold on the worksheet line:** when you enter an item on a requisition worksheet line, the threshold is taken from the purchases setup or, if available, from the item's ranking. The threshold is also shown in the **Item Replenishment Factbox** of the worksheet (field **UoM Rounding Threshold %**).
- **Manual quantity entry:** when you change the **Quantity** field of an item line expressed in the base unit of measure, the system calculates the rounded quantity. With **Always** it applies it directly; with **Optional** it shows the message *"Round quantity to ...?"* and applies it only if you confirm.
- **Replenishment calculation:** during the automatic calculation of reorder quantities, the suggested quantity is rounded according to the configured mode. When rounding is applied, the item's order multiple is not applied on top of it.