feat: allow scrap items when backflush based on is Material Transfer

This commit is contained in:
s-aga-r 2023-08-26 11:38:45 +05:30
parent 08bc33689c
commit ed4f498704

View File

@ -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):