mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-14 23:18:40 +00:00
@@ -145,7 +145,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