diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.py b/erpnext/buying/doctype/purchase_order/purchase_order.py index 80b3d83f35a..049d4352ae3 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.py +++ b/erpnext/buying/doctype/purchase_order/purchase_order.py @@ -218,7 +218,7 @@ class PurchaseOrder(BuyingController): if self.is_old_subcontracting_flow: self.validate_bom_for_subcontracting_items() - self.create_raw_materials_supplied() + self.create_raw_materials_supplied_or_received() self.validate_fg_item_for_subcontracting() diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 49a950fb5bf..df827360e6e 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -4213,7 +4213,7 @@ def update_child_qty_rate( if parent.is_old_subcontracting_flow: if should_update_supplied_items(parent): parent.update_reserved_qty_for_subcontract() - parent.create_raw_materials_supplied() + parent.create_raw_materials_supplied_or_received() parent.save() else: if not parent.can_update_items(): diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index e8b10211b0c..3fd8110aaaf 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -63,7 +63,7 @@ class BuyingController(SubcontractingController): # sub-contracting self.validate_for_subcontracting() if self.get("is_old_subcontracting_flow"): - self.create_raw_materials_supplied() + self.create_raw_materials_supplied_or_received() self.set_landed_cost_voucher_amount() if self.doctype in ("Purchase Receipt", "Purchase Invoice"):