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:

 

  1. Go to Stock > Setup > UoM.
  2. Open the UoM that you want to restrict (e.g., Nos).
  3. Turn on Must be Whole Number.
  4. 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.

Follow for more

Zikpro LLP
Talk to our consultant
×
Hello! How can I help you?
Discuss ERPNext