mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-19 04:42:40 +00:00
fix: create_raw_materials_supplied method not found
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user