Skip to content

A local-first personal finance app

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

Joel Jeremy Marquezb0f55fae383f
diff --git a/packages/loot-core/src/shared/schedules.ts b/packages/loot-core/src/shared/schedules.ts
index 174b8102c3..943a6e60dc 100644
--- a/packages/loot-core/src/shared/schedules.ts
+++ b/packages/loot-core/src/shared/schedules.ts
@@ -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']);
diff --git a/upcoming-release-notes/2712.md b/upcoming-release-notes/2712.md
new file mode 100644
index 0000000000..45ede1502f
--- /dev/null
+++ b/upcoming-release-notes/2712.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [joel-jeremy]
+---
+
+Fix preview transactions not detecting schedule as paid when a child transaction is linked.