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 which 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

Discard
Save

On this page

Review Changes ← Back to Content
Message Status Space Raised By Last update on