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

[Bug]: Hide reconciled transactions - wrong balance shown #2703

Open
2 tasks done
ngocphamm opened this issue May 4, 2024 · 5 comments
Open
2 tasks done

[Bug]: Hide reconciled transactions - wrong balance shown #2703

ngocphamm opened this issue May 4, 2024 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed transaction reconciliation Related to transaction reconciliation transactions Related to transactions user interface Related to the user interface

Comments

@ngocphamm
Copy link

Verified issue does not already exist?

  • I have searched and found no existing issue
  • I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file)

What happened?

Balance on the account is shown differently when reconciled transactions are hidden.

Not hidden

CleanShot 2024-05-04 at 10 27 15

Hidden

CleanShot 2024-05-04 at 10 27 36

I think another person experienced this too #2503 (comment)

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Firefox

Operating System

Mac OSX

@ngocphamm ngocphamm added the bug Something isn't working label May 4, 2024
@ToniCipriani
Copy link

Issue confirmed on Windows and Android PWA as well.

@MatissJanis
Copy link
Member

👋 Would you mind providing a demo budget export so folks can reproduce the issue?
Thanks

@ngocphamm
Copy link
Author

@MatissJanis Please use this one.

2024-05-06-My-Finances-2befb2e.zip

@MatissJanis MatissJanis added help wanted Extra attention is needed transactions Related to transactions user interface Related to the user interface transaction reconciliation Related to transaction reconciliation labels May 6, 2024
@joel-jeremy
Copy link
Contributor

The issue occurs because the running balance calculation runs the calculations based on the queried transactions. In the case of hiding the reconciled transaction, the reconciled transaction are being excluded from the query hence the calculation is returning the wrong results.

I can think of two possible ways to fix this:

  1. Revert the query to fetch all transactions (including reconciled) but do not render the reconciled transactions.
  2. When toggling the reconciled transactions, recalculate the starting balance in which the running balance calculation will start from.

@youngcw
Copy link
Contributor

youngcw commented May 14, 2024

The issue occurs because the running balance calculation runs the calculations based on the queried transactions. In the case of hiding the reconciled transaction, the reconciled transaction are being excluded from the query hence the calculation is returning the wrong results.

I can think of two possible ways to fix this:

  1. Revert the query to fetch all transactions (including reconciled) but do not render the reconciled transactions.
  2. When toggling the reconciled transactions, recalculate the starting balance in which the running balance calculation will start from.

I think either of those would work. The one small thing with option 1 is that the transactions may not be contiguous and that would make the running balance not align perfectly with the shown transactions. Option 2 would get around this, but could be annoying to users who would like both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed transaction reconciliation Related to transaction reconciliation transactions Related to transactions user interface Related to the user interface
Projects
None yet
Development

No branches or pull requests

5 participants