Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for fluctuating exchange rates #1645

Open
mtotschnig opened this issue Feb 3, 2025 · 1 comment
Open

Better support for fluctuating exchange rates #1645

mtotschnig opened this issue Feb 3, 2025 · 1 comment

Comments

@mtotschnig
Copy link
Owner

mtotschnig commented Feb 3, 2025

Currently exchange rate is set on the account level, and each transaction can set an equivalent amount/exchange rate that overrides the account level.

Problem 1) When a new transaction is created, by default the exchange rate from the account level is used, instead from the last transaction or fetched from exchange rate provider.
Thus historical evolution of exchange rates is not correctly reflected unless you each time call "Equivalent amount" from the menu, and download new exchange rate. Even if you do not forget the first, you might just accept the account rate prefilled in (which is the account level exchange rate).

Problem 2) In the Grand total account, the sum of equivalent amounts is also used to calculate current balance, which gives wrong result, since the current balance should be based on an up to date exchange rate.

Problem 3) Change of home currency leads to loss of exchange rates.

Problem 3 seems hardest to fix, Problem 2 easiest: We calculate the grand total current balance by applying the most current exchange rate to the current balance of each account. In order to track the current value of each account, we will also introduce an option to download exchange rates automatically every day.

Suggested solution for problem 1:

Accounts can be configured with static or dynamic exchange rate. With the first option we no longer offer the equivalent amount field to be shown. With the second option, every transaction needs to set an equivalent amount, you will have 2 options either fill it from last transaction for the same currency, or download from exchange rate provider.

@mtotschnig
Copy link
Owner Author

The current implementation has shortcomings with respect to how transfers are represented in the aggregate accounts on the account list:

  1. On the Grand Total account, we currently do not show transfers, which was motivated by the idea that a transfer from one account to the other results in a 0-sum, but this is not the case for transactions mapped to transfer categories, which are counted as transfers and impact the Grand Total account as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant