Skip to content

Commit

Permalink
Merge pull request #36077 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-36076

fix: possible type error on ERR creation (backport #36076)
  • Loading branch information
ruthra-kumar authored Jul 11, 2023
2 parents 44f509f + 0569899 commit 7925fc7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ def calculate_new_account_balance(company, posting_date, account_details):
new_balance_in_base_currency = 0
new_balance_in_account_currency = 0

current_exchange_rate = calculate_exchange_rate_using_last_gle(
company, d.account, d.party_type, d.party
current_exchange_rate = (
calculate_exchange_rate_using_last_gle(company, d.account, d.party_type, d.party) or 0.0
)

gain_loss = new_balance_in_account_currency - (
Expand Down

0 comments on commit 7925fc7

Please sign in to comment.