Managing Fractions in UOM
UoM stands for Unit of Measurement. A few examples of UoM are Numbers (Nos), Kgs, Litre, Meter, Box, Carton etc.
There are few UOMs which cannot have value in decimal places. For example, if we have television for an item, with Nos as its UoM, we cannot have 1.5 Nos. of television, or 3.7 Nos. of computer sets. The value of the quantity for these items must be the whole number.
You can configure whether a particular UoM can have value in a decimal place or not. By default, value in decimal places will be allowed for all the UOMs. To restrict decimal places or value in fraction for any UoM, you should follow these steps.
UOM List
For UOM list, go to:
Stock > Setup > UoM
From the list of UOM, select UOM for which value in the decimal place is to be restricted. Let's assume that UoM is Nos.
Configure
In the UoOM master, you will find a field called "Must be whole number". Check this field to restrict user from enter value in decimal places in quantity field, for item having this UOM.
Validation
While creating transaction, if you enter value in fraction for item whose UOM has "Must be whole number" checked, you will get error message stating:
Quantity cannot be a fraction at row #