Skip to content

Commit

Permalink
fix: possible type error on ERR creation
Browse files Browse the repository at this point in the history
(cherry picked from commit 176966d)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Jul 11, 2023
1 parent 44f509f commit 0569899
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

2 comments on commit 0569899

@dineshpanchal93
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ruthra-kumar is this patch to update on version- 13 ?

@ruthra-kumar
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.