Skip to content

Commit

Permalink
Merge branch 'master' into mobileColors
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom authored Nov 8, 2023
2 parents 2097517 + 1c68c3f commit d614aae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/loot-core/src/client/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ export function getAccountFilter(accountId, field = 'account') {
if (accountId) {
if (accountId === 'budgeted') {
return {
[`${field}.offbudget`]: false,
[`${field}.closed`]: false,
$and: [
{ [`${field}.offbudget`]: false },
{ [`${field}.closed`]: false },
],
};
} else if (accountId === 'offbudget') {
return {
[`${field}.offbudget`]: true,
[`${field}.closed`]: false,
$and: [
{ [`${field}.offbudget`]: true },
{ [`${field}.closed`]: false },
],
};
} else if (accountId === 'uncategorized') {
return {
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/1867.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [sreetamdas]
---

Fix account filter for budgeted and offbudget accounts, fixes #1577

0 comments on commit d614aae

Please sign in to comment.