fix(stock entry): wrong valuation rate in repack (#33579)

fix(stock entry): wrong valuation rate in repack

(cherry picked from commit 99f5e869e0)

Co-authored-by: safvanhuzain <danyrt@wahni.com>
This commit is contained in:
mergify[bot]
2023-01-10 09:01:51 +05:30
committed by GitHub
parent c6c3ac3e55
commit a92b4e7255

View File

@@ -998,7 +998,9 @@ class StockEntry(StockController):
)
def mark_finished_and_scrap_items(self):
if any([d.item_code for d in self.items if (d.is_finished_item and d.t_warehouse)]):
if self.purpose != "Repack" and any(
[d.item_code for d in self.items if (d.is_finished_item and d.t_warehouse)]
):
return
finished_item = self.get_finished_item()