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
When trying to filter transactions by Note, the "Filtered Balance" doesn't include the split if each line doesn't also have the note.
I would expect that the split be included if each split note is empty. If each split has a different note, then those splits should be filtered accordingly. For example, in the image, if the note on the External Purchases split said "Family" I would not expect it to calculate in the "contains kro" filter. However, those splits that are empty should calculate. Otherwise, every split needs to have all fields filed out to calculate properly.
How can we reproduce the issue?
How can we reproduce the issue?
Create a split transaction, notate the main split, but not the individual sub-splits, filter by note. Filtered Balance will be different than expected, and not show non-notated sub-splits.
Where are you hosting Actual?
Locally via Yarn
What browsers are you seeing the problem on?
Chrome, Firefox
Operating System
Windows 11
The text was updated successfully, but these errors were encountered:
Rescue9
changed the title
[Bug]: Filtered balance on Split's ntoes not calculating properly
[Bug]: Filtered balance on Split's notes not calculating properly
Feb 14, 2025
I looked into this and I'm able to reproduce it as well, not just in the account filter but also in reports if you make a custom report and add a filter that matches both child and parent, you will only see the parent transaction. The issue seems to be happening here
if (isAggregateQuery(queryState)) {
const s = { ...sql };
// Modify the where to only include non-parents
s.where = `${s.where} AND ${s.from}.is_parent = 0`;
// We also want to exclude deleted transactions. Normally we
// handle this manually down below, but now that we are doing a
// normal query we want to rely on the view. Unfortunately, SQL
// has already been generated so we can't easily change the view
// name here; instead, we change it and map it back to the name
// used elsewhere in the query. Ideally we'd improve this
if (!withDead) {
s.from = 'v_transactions_internal_alive v_transactions_internal';
}
(Note the ${s.from}.is_parent = 0) For aggregate queries we simply don't consider split parent transactions at all. I don't immediately see a good solution to this and I'm new to the codebase so probably shouldn't be modifying something as integral as this right now.
Verified issue does not already exist?
What happened?
When trying to filter transactions by Note, the "Filtered Balance" doesn't include the split if each line doesn't also have the note.
I would expect that the split be included if each split note is empty. If each split has a different note, then those splits should be filtered accordingly. For example, in the image, if the note on the External Purchases split said "Family" I would not expect it to calculate in the "contains kro" filter. However, those splits that are empty should calculate. Otherwise, every split needs to have all fields filed out to calculate properly.
How can we reproduce the issue?
How can we reproduce the issue?
Create a split transaction, notate the main split, but not the individual sub-splits, filter by note. Filtered Balance will be different than expected, and not show non-notated sub-splits.
Where are you hosting Actual?
Locally via Yarn
What browsers are you seeing the problem on?
Chrome, Firefox
Operating System
Windows 11
The text was updated successfully, but these errors were encountered: