fix: ignore backflush setting on subcontracting return
(cherry picked from commit 7479e1ec32)
This commit is contained in:
@@ -743,7 +743,9 @@ class SubcontractingController(StockController):
|
||||
):
|
||||
continue
|
||||
|
||||
if self.doctype == self.subcontract_data.order_doctype or self.backflush_based_on == "BOM":
|
||||
if self.doctype == self.subcontract_data.order_doctype or (
|
||||
self.backflush_based_on == "BOM" or self.is_return
|
||||
):
|
||||
for bom_item in self.__get_materials_from_bom(
|
||||
row.item_code, row.bom, row.get("include_exploded_items")
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user