Browse Source

fix: Avoid Impact on Repack Entry

- Repack entries must be considered for fg/scrap checkbox auto set
- This must be avoided only for Manufacture entries, due to confusion between scrap and fg
- No scrap in repack, so its straight forward
develop
marination 3 years ago
parent
commit
22809a2838
  1. 2
      erpnext/stock/doctype/stock_entry/stock_entry.py

2
erpnext/stock/doctype/stock_entry/stock_entry.py

@ -707,7 +707,7 @@ class StockEntry(StockController):
finished_item = self.get_finished_item()
if not finished_item:
if not finished_item and self.purpose == "Manufacture":
# In case of independent Manufacture entry, don't auto set
# user must decide and set
return

Loading…
Cancel
Save