From c92a06d77d82c02ba6755ba0e4d0f79cbc31bdcc Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Sun, 14 Sep 2025 11:22:14 +0530 Subject: [PATCH] fix: precision issue for valuation rate calculation --- erpnext/stock/stock_ledger.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/erpnext/stock/stock_ledger.py b/erpnext/stock/stock_ledger.py index 985ef099c6a..8ae3c11ab6d 100644 --- a/erpnext/stock/stock_ledger.py +++ b/erpnext/stock/stock_ledger.py @@ -887,10 +887,7 @@ class update_entries_after: self.wh_data.valuation_rate ) - if ( - sle.actual_qty < 0 - and flt(self.wh_data.qty_after_transaction, self.flt_precision) != 0 - ): + if flt(self.wh_data.qty_after_transaction, self.flt_precision) != 0: self.wh_data.valuation_rate = flt( self.wh_data.stock_value, self.currency_precision ) / flt(self.wh_data.qty_after_transaction, self.flt_precision)