You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The balance sums shown next to the collapsible account groups in the sidebar don't include accounts in foreign currencies, if today's exchange rates for those currencies are missing in the database.
To Reproduce
Steps to reproduce the behavior:
Create a new account in a foreign (= different from your base) currency (one that you haven't used before) with a non-zero balance
Observe that in the sidebar, the balance of the new account isn't included in the sum for that account type group
Expected behavior
Account group balances in the sidebar should take foreign currencies into account. In the screenshot below, the number next to Other Liability should be roughly $1020.00 (200 SEK ~ 20 USD)
Screenshots / Recordings
Additional context
The issue is caused by a missing exchange rate when this check is performed:
Perhaps we should sync the account right after it's created? Or at the very least call account.sync_exchange_rates. We'll also need to fetch exchange rates periodically or upon login, otherwise the bug reappears the next day.
The text was updated successfully, but these errors were encountered:
@jakubkottnauer since populating exchange rates requires a user to potentially spend money, the app needs to assume that rates cannot always be populated in full and have sensible ways of handling that.
The behavior we're seeing here is the original intention, but may not be the best way to handle it.
What do you think is the best way to display the data when a user has not synced exchange rates?
I haven't quite gotten to this yet, but my thinking was that in these scenarios where user action is required to fix the data, we display global warnings to alert them that their data is not 100% correct and they need to do something to fix it:
Gotcha, yes, I think what you suggest would be fine. Maybe we could, in addition to the user action prompt, also show a little icon next to all the balances that are impacted by the missing exchange rate (as an example, in your screenshot the USD accounts in the sidebar would be shown normally, but foreign currency accounts would have the icon next to the balance)
Describe the bug
The balance sums shown next to the collapsible account groups in the sidebar don't include accounts in foreign currencies, if today's exchange rates for those currencies are missing in the database.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Account group balances in the sidebar should take foreign currencies into account. In the screenshot below, the number next to
Other Liability
should be roughly$1020.00
(200 SEK ~ 20 USD)Screenshots / Recordings
Additional context
The issue is caused by a missing exchange rate when this check is performed:
maybe/lib/money.rb
Line 31 in 79789bd
Perhaps we should sync the account right after it's created? Or at the very least call
account.sync_exchange_rates
. We'll also need to fetch exchange rates periodically or upon login, otherwise the bug reappears the next day.The text was updated successfully, but these errors were encountered: