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
This commit is contained in:
marination 2021-12-28 13:23:27 +05:30
parent 7d0340e660
commit 22809a2838

View File

@ -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