fix: Map correct company to PO made via Prod Plan (subcontract)
This commit is contained in:
parent
2777c5c67c
commit
6315acc450
@ -500,6 +500,7 @@ class ProductionPlan(Document):
|
||||
|
||||
for supplier, po_list in subcontracted_po.items():
|
||||
po = frappe.new_doc("Purchase Order")
|
||||
po.company = self.company
|
||||
po.supplier = supplier
|
||||
po.schedule_date = getdate(po_list[0].schedule_date) if po_list[0].schedule_date else nowdate()
|
||||
po.is_subcontracted = 1
|
||||
|
Loading…
Reference in New Issue
Block a user