fix: incorrect fieldname

This commit is contained in:
Rohit Waghchaure 2021-10-20 20:28:29 +05:30 committed by Ankush Menat
parent da3635b94f
commit 311bafb23b

View File

@ -424,7 +424,7 @@ class ProductionPlan(Document):
po = frappe.new_doc('Purchase Order') po = frappe.new_doc('Purchase Order')
po.supplier = supplier po.supplier = supplier
po.schedule_date = getdate(po_list[0].schedule_date) if po_list[0].schedule_date else nowdate() po.schedule_date = getdate(po_list[0].schedule_date) if po_list[0].schedule_date else nowdate()
po.is_subcontracted_item = 'Yes' po.is_subcontracted = 'Yes'
for row in po_list: for row in po_list:
args = { args = {
'item_code': row.production_item, 'item_code': row.production_item,