Managing Fractions in UOM
UoM (Unit of Measurement) specifies the way quantities are measured, e.g., Nos, Kg, Litre, Meter, Box, Carton.
Certain UoMs cannot be fractional values — you cannot have 1.5 Nos of a TV or 3.7 Nos of a computer set. Here, the quantity has to be a whole number.
Configuration
All UoMs in ERPNext support decimal values by default. To limit fractions:
Go to Stock > Setup > UoM.
Open the UoM which you want to restrict (e.g., Nos).
Turn on Must be Whole Number.
Save.
Validation in Transactions
If you provide a fractional quantity for a commodity whose UoM is defined as Must be Whole Number, ERPNext will display an error:
Quantity cannot be a fraction at row #
This helps in correct unit handling and prevents invalid fractional entries.