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)