fix: `TypeError` while creating WO from PP (backport #36136) (#36137) fix: `TypeError` while creating WO from PP (#36136) (cherry picked from commit8f5b94f5fd) Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com> (cherry picked from commitdd5101056d) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user