fix: scrap item not adding while making finished good entry

This commit is contained in:
Rohit Waghchaure
2019-07-31 00:00:47 +05:30
parent 29e3cfd60f
commit d06f3882e9

View File

@@ -753,7 +753,7 @@ class StockEntry(StockController):
self.add_to_stock_entry_detail(item_dict) self.add_to_stock_entry_detail(item_dict)
if self.purpose != "Subcontract": if self.purpose != "Subcontract" and self.purpose == "Manufacture":
scrap_item_dict = self.get_bom_scrap_material(self.fg_completed_qty) scrap_item_dict = self.get_bom_scrap_material(self.fg_completed_qty)
for item in itervalues(scrap_item_dict): for item in itervalues(scrap_item_dict):
if self.pro_doc and self.pro_doc.scrap_warehouse: if self.pro_doc and self.pro_doc.scrap_warehouse: