mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-15 15:38:39 +00:00
chore: use flt() in qty check
This commit is contained in:
@@ -146,7 +146,7 @@ class Opportunity(TransactionBase, CRMNote):
|
||||
|
||||
def validate_qty(self):
|
||||
for item in self.items:
|
||||
if item.qty <= 0:
|
||||
if flt(item.qty) <= 0:
|
||||
frappe.throw(
|
||||
_("Row #{0}: Quantity must be greater than 0 for Item {1}").format(
|
||||
item.idx, item.item_code
|
||||
|
||||
Reference in New Issue
Block a user