fix: TypeError
while creating WO from PP (#36136)
This commit is contained in:
parent
692bfccb6e
commit
8f5b94f5fd
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user