Skip to content

A local-first personal finance app

Add daily option to schedules (#900)

biohzrddddf63c7e141d1
diff --git a/packages/desktop-client/src/components/select/RecurringSchedulePicker.js b/packages/desktop-client/src/components/select/RecurringSchedulePicker.js
index c926f9e1e9..9636b8287f 100644
--- a/packages/desktop-client/src/components/select/RecurringSchedulePicker.js
+++ b/packages/desktop-client/src/components/select/RecurringSchedulePicker.js
@@ -17,6 +17,7 @@ import DateSelect from './DateSelect';
const MAX_DAY_OF_WEEK_INTERVAL = 5;
const FREQUENCY_OPTIONS = [
+ { id: 'daily', name: 'Days' },
{ id: 'weekly', name: 'Weeks' },
{ id: 'monthly', name: 'Months' },
{ id: 'yearly', name: 'Years' },
diff --git a/packages/loot-core/src/shared/schedules.ts b/packages/loot-core/src/shared/schedules.ts
index 62f5c6736b..0181e6ecd6 100644
--- a/packages/loot-core/src/shared/schedules.ts
+++ b/packages/loot-core/src/shared/schedules.ts
@@ -65,6 +65,11 @@ export function getRecurringDescription(config) {
let interval = config.interval || 1;
switch (config.frequency) {
+ case 'daily': {
+ let desc = 'Every ';
+ desc += interval !== 1 ? `${interval} days` : 'day';
+ return desc;
+ }
case 'weekly': {
let desc = 'Every ';
desc += interval !== 1 ? `${interval} weeks` : 'week';
@@ -172,6 +177,9 @@ export function recurConfigToRSchedule(config) {
let abbrevDay = name => name.slice(0, 2).toUpperCase();
switch (config.frequency) {
+ case 'daily':
+ // Nothing to do
+ return [base];
case 'weekly':
// Nothing to do
return [base];
diff --git a/upcoming-release-notes/900.md b/upcoming-release-notes/900.md
new file mode 100644
index 0000000000..f5bd967529
--- /dev/null
+++ b/upcoming-release-notes/900.md
@@ -0,0 +1,6 @@
+---
+category: Enhancements
+authors: [biohzrddd]
+---
+
+Add "Daily" option to scheduled transactions