mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
Merge pull request #18452 from rohitwaghchaure/scrap_item_not_adding
fix: scrap item not adding while doing finished good entry
This commit is contained in:
@@ -802,7 +802,7 @@ class StockEntry(StockController):
|
|||||||
|
|
||||||
self.add_to_stock_entry_detail(item_dict)
|
self.add_to_stock_entry_detail(item_dict)
|
||||||
|
|
||||||
if self.purpose != "Send to Subcontractor":
|
if self.purpose != "Send to Subcontractor" 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user