brotherton-erpnext/erpnext/docs/user/manual/en/stock/articles/managing-fractions-in-uom.md

34 lines
1.4 KiB
Markdown
Raw Normal View History

<h1>Managing Fractions in UoM</h1>
<h1>Managing Fractions in UoM</h1>
UoM stands for Unit of Measurement. Few examples of UoM are Numbers (Nos), Kgs, Litre, Meter, Box, Carton etc.
There are few UoMs which cannot have value 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 quantity for these items must be whole number.
You can configure if particular UoM can have value in decimal place or no. Bydefault, decimal places will be allowed in 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`
For the list of UoM, select one which you want to restrict value in fraction. Let's assume that UoM is Nos.
####Configure
In the UoM form, you will find a field called "Must be whole number". Check this field to restrict user from enter decimal places in quantity field for item with this UoM.
![UoM Whole No]({{docs_base_url}}/assets/img/articles/$SGrab_390.png)
####While Creating Entry
While creating transaction, if you enter value in fraction for item who's UoM has "Must be whole number" checked, you will get error message stating:
`Quantity cannot be a fraction at row #`
![UoM Fraction Error]({{docs_base_url}}/assets/img/articles/$SGrab_389.png)
<!-- markdown -->