mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-17 16:38:41 +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:
|
if self.is_old_subcontracting_flow:
|
||||||
self.validate_bom_for_subcontracting_items()
|
self.validate_bom_for_subcontracting_items()
|
||||||
self.create_raw_materials_supplied()
|
self.create_raw_materials_supplied_or_received()
|
||||||
|
|
||||||
self.validate_fg_item_for_subcontracting()
|
self.validate_fg_item_for_subcontracting()
|
||||||
|
|
||||||
|
|||||||
@@ -4213,7 +4213,7 @@ def update_child_qty_rate(
|
|||||||
if parent.is_old_subcontracting_flow:
|
if parent.is_old_subcontracting_flow:
|
||||||
if should_update_supplied_items(parent):
|
if should_update_supplied_items(parent):
|
||||||
parent.update_reserved_qty_for_subcontract()
|
parent.update_reserved_qty_for_subcontract()
|
||||||
parent.create_raw_materials_supplied()
|
parent.create_raw_materials_supplied_or_received()
|
||||||
parent.save()
|
parent.save()
|
||||||
else:
|
else:
|
||||||
if not parent.can_update_items():
|
if not parent.can_update_items():
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ class BuyingController(SubcontractingController):
|
|||||||
# sub-contracting
|
# sub-contracting
|
||||||
self.validate_for_subcontracting()
|
self.validate_for_subcontracting()
|
||||||
if self.get("is_old_subcontracting_flow"):
|
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()
|
self.set_landed_cost_voucher_amount()
|
||||||
|
|
||||||
if self.doctype in ("Purchase Receipt", "Purchase Invoice"):
|
if self.doctype in ("Purchase Receipt", "Purchase Invoice"):
|
||||||
|
|||||||
Reference in New Issue
Block a user