Skip to content
Snippets Groups Projects
Unverified Commit b0f55fae authored by Joel Jeremy Marquez's avatar Joel Jeremy Marquez Committed by GitHub
Browse files

Fix preview transactions not detecting schedule as paid when a child transaction is linked. (#2712)

* Consider child transactions when querying preview transactions

* Release notes
parent 7c658da1
No related branches found
No related tags found
No related merge requests found
......@@ -36,14 +36,14 @@ export function getHasTransactionsQuery(schedules) {
$gte:
dateCond && dateCond.op === 'is'
? schedule.next_date
: monthUtils.subDays(schedule.next_date, 2),
: monthUtils.subDays(schedule.next_date, 7),
},
},
};
});
return q('transactions')
.options({ splits: 'grouped' })
.options({ splits: 'all' })
.filter({ $or: filters })
.orderBy({ date: 'desc' })
.select(['schedule', 'date']);
......
---
category: Bugfix
authors: [joel-jeremy]
---
Fix preview transactions not detecting schedule as paid when a child transaction is linked.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment