mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 09:35:03 +00:00
fix: use flt to ignore TypeError (#37481)
This commit is contained in:
@@ -699,7 +699,7 @@ class update_entries_after(object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if self.valuation_method == "Moving Average":
|
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:
|
else:
|
||||||
rate = get_rate_for_return(
|
rate = get_rate_for_return(
|
||||||
sle.voucher_type,
|
sle.voucher_type,
|
||||||
|
|||||||
Reference in New Issue
Block a user