Merge branch 'develop' of https://github.com/frappe/erpnext into eslint

This commit is contained in:
Deepesh Garg
2023-07-15 20:29:14 +05:30
16 changed files with 144 additions and 847 deletions

View File

@@ -621,7 +621,7 @@ class ProductionPlan(Document):
def create_work_order(self, item):
from erpnext.manufacturing.doctype.work_order.work_order import OverProductionError
if item.get("qty") <= 0:
if flt(item.get("qty")) <= 0:
return
wo = frappe.new_doc("Work Order")