"Quantity (0.54) cannot be a fraction in row 1" this message keeps popping up every 3 minutes.. Please help

Traceback (most recent call last):
File “/home/frappe/benches/bench-2019-03-13/apps/erpnext/erpnext/accounts/doctype/sales_invoice/pos.py”, line 594, in save_invoice
si.insert(ignore_permissions=True)
File “/home/frappe/benches/bench-2019-03-13/apps/frappe/frappe/model/document.py”, line 222, in insert
self.run_before_save_methods()
File “/home/frappe/benches/bench-2019-03-13/apps/frappe/frappe/model/document.py”, line 876, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/benches/bench-2019-03-13/apps/frappe/frappe/model/document.py”, line 772, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/benches/bench-2019-03-13/apps/frappe/frappe/model/document.py”, line 1048, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/benches/bench-2019-03-13/apps/frappe/frappe/model/document.py”, line 1031, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/benches/bench-2019-03-13/apps/frappe/frappe/model/document.py”, line 766, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/benches/bench-2019-03-13/apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py”, line 82, in validate
self.validate_uom_is_integer(“stock_uom”, “stock_qty”)
File “/home/frappe/benches/bench-2019-03-13/apps/erpnext/erpnext/utilities/transaction_base.py”, line 80, in validate_uom_is_integer
validate_uom_is_integer(self, uom_field, qty_fields)
File “/home/frappe/benches/bench-2019-03-13/apps/erpnext/erpnext/utilities/transaction_base.py”, line 179, in validate_uom_is_integer
frappe.throw(_(“Quantity ({0}) cannot be a fraction in row {1}”).format(qty, d.idx), UOMMustBeIntegerError)
File “/home/frappe/benches/bench-2019-03-13/apps/frappe/frappe/init.py”, line 353, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/frappe/benches/bench-2019-03-13/apps/frappe/frappe/init.py”, line 339, in msgprint
_raise_exception()
File “/home/frappe/benches/bench-2019-03-13/apps/frappe/frappe/init.py”, line 312, in _raise_exception
raise raise_exception(msg)
UOMMustBeIntegerError: Quantity (0.54) cannot be a fraction in row 1

  1. Open the UOM List
  2. identify the Unit of Measuremtn entry with which you have this problem
  3. open it and check whether "Must be Whole Number" is checked.
    image
    Unchecking that, or creating/using an UOM which allows fractions should solve your problem I guess
1 Like