fix: '<' not supported between instances of 'str' and 'int'
This commit is contained in:
parent
5210761e57
commit
3a914a7cd7
@ -181,7 +181,7 @@ class StockEntry(StockController):
|
|||||||
stock_items = self.get_stock_items()
|
stock_items = self.get_stock_items()
|
||||||
serialized_items = self.get_serialized_items()
|
serialized_items = self.get_serialized_items()
|
||||||
for item in self.get("items"):
|
for item in self.get("items"):
|
||||||
if item.qty and item.qty < 0:
|
if flt(item.qty) and flt(item.qty) < 0:
|
||||||
frappe.throw(_("Row {0}: The item {1}, quantity must be positive number")
|
frappe.throw(_("Row {0}: The item {1}, quantity must be positive number")
|
||||||
.format(item.idx, frappe.bold(item.item_code)))
|
.format(item.idx, frappe.bold(item.item_code)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user