mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 07:20:26 +00:00
fix: use `flt` to ignore TypeError (#37481)
(cherry picked from commit d2b22db500)
Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
This commit is contained in:
@@ -659,7 +659,7 @@ class update_entries_after(object):
|
||||
)
|
||||
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user