diff --git a/erpnext/stock/stock_ledger.py b/erpnext/stock/stock_ledger.py index c8e75d5c43ce..e1d5081d7308 100644 --- a/erpnext/stock/stock_ledger.py +++ b/erpnext/stock/stock_ledger.py @@ -659,7 +659,7 @@ def get_incoming_outgoing_rate_from_transaction(self, sle): ) if self.valuation_method == "Moving Average": - rate = self.data[self.args.warehouse].previous_sle.valuation_rate + rate = flt(self.data[self.args.warehouse].previous_sle.valuation_rate) else: rate = get_rate_for_return( sle.voucher_type,