fix: TypeError while creating WO from PP (#36136)

This commit is contained in:
s-aga-r
2023-07-14 18:01:11 +05:30
committed by GitHub
parent 692bfccb6e
commit 8f5b94f5fd

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")