fix: Fetch scrap items from BOM if purpose is repack (#19056)

This commit is contained in:
Deepesh Garg 2019-09-16 14:49:12 +05:30 committed by Nabin Hait
parent 57835f0a37
commit 8cc2f83bd5

View File

@ -812,7 +812,7 @@ class StockEntry(StockController):
self.add_to_stock_entry_detail(item_dict)
if self.purpose != "Send to Subcontractor" and self.purpose == "Manufacture":
if self.purpose != "Send to Subcontractor" and self.purpose in ["Manufacture", "Repack"]:
scrap_item_dict = self.get_bom_scrap_material(self.fg_completed_qty)
for item in itervalues(scrap_item_dict):
if self.pro_doc and self.pro_doc.scrap_warehouse: