fix: Account Report / Account Currency Filter #47643
Draft
+1
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Do not convert the account currency via the company currency if the account currency is the same as the presentation currency.
len(account_currencies) == 1
introduced by #25654 seems not be necessary and creates issues, when viewing the balance sheet for example in the account currency, which is not the company currency. In this case the old behavior withlen(account_currencies) == 1
was, that the account debit/credit in the account currency was recalculated based on the company currency giving a difference to the actual account debit/credit.Company Currency = EUR
Account Currency = USD
Old balance sheet view in EUR:
Old balance sheet view in USD:
New balance sheet view in EUR:
New balance sheet view in USD: