From a92b4e7255e173873fa285dc2f5fca414dc601b8 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 10 Jan 2023 09:01:51 +0530 Subject: [PATCH] fix(stock entry): wrong valuation rate in repack (#33579) fix(stock entry): wrong valuation rate in repack (cherry picked from commit 99f5e869e02d0cba39d3cdd970dd7c63e641eaa1) Co-authored-by: safvanhuzain --- erpnext/stock/doctype/stock_entry/stock_entry.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index a5264ac195a..d90a74f7b4a 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -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()