fix: use flt to ignore TypeError (#37481)

This commit is contained in:
s-aga-r
2023-10-13 10:22:20 +05:30
committed by GitHub
parent c43d0b81e3
commit d2b22db500

View File

@@ -699,7 +699,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,