Skip to content

Commit

Permalink
fix: TypeError while creating WO from PP (#36136)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r authored Jul 14, 2023
1 parent 692bfcc commit 8f5b94f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def show_list_created_message(self, doctype, doc_list=None):
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")
Expand Down

0 comments on commit 8f5b94f

Please sign in to comment.