feat: allow scrap items when backflush based on is Material Transfer
This commit is contained in:
parent
08bc33689c
commit
ed4f498704
@ -149,10 +149,6 @@ class SubcontractingReceipt(SubcontractingController):
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_scrap_items(self, recalculate_rate=False):
|
||||
if (
|
||||
frappe.db.get_single_value("Buying Settings", "backflush_raw_materials_of_subcontract_based_on")
|
||||
== "BOM"
|
||||
):
|
||||
self.remove_scrap_items()
|
||||
|
||||
for item in list(self.items):
|
||||
|
Loading…
Reference in New Issue
Block a user