diff --git a/erpnext/stock/stock_ledger.py b/erpnext/stock/stock_ledger.py index 13bbe1f5c08c..84bcb99f738e 100644 --- a/erpnext/stock/stock_ledger.py +++ b/erpnext/stock/stock_ledger.py @@ -699,7 +699,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,