fix: possible type error on ERR creation
This commit is contained in:
parent
ab58c01a0f
commit
176966daab
@ -252,8 +252,8 @@ class ExchangeRateRevaluation(Document):
|
|||||||
new_balance_in_base_currency = 0
|
new_balance_in_base_currency = 0
|
||||||
new_balance_in_account_currency = 0
|
new_balance_in_account_currency = 0
|
||||||
|
|
||||||
current_exchange_rate = calculate_exchange_rate_using_last_gle(
|
current_exchange_rate = (
|
||||||
company, d.account, d.party_type, d.party
|
calculate_exchange_rate_using_last_gle(company, d.account, d.party_type, d.party) or 0.0
|
||||||
)
|
)
|
||||||
|
|
||||||
gain_loss = new_balance_in_account_currency - (
|
gain_loss = new_balance_in_account_currency - (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user