Skip to content

Commit

Permalink
fix: use flt to ignore TypeError (backport #37481) (#37489)
Browse files Browse the repository at this point in the history
fix: use `flt` to ignore TypeError (#37481)

(cherry picked from commit d2b22db)

Co-authored-by: s-aga-r <[email protected]>
  • Loading branch information
mergify[bot] and s-aga-r authored Oct 13, 2023
1 parent 66ad823 commit 8b4e692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8b4e692

Please sign in to comment.