Fixes #4705: Scheduled transaction date when posting early. (#4719)

This commit is contained in:
Bhautik Savaliya
2025-04-18 13:33:39 -04:00
committed by GitHub
parent f1594e5bca
commit a2b9153d02
2 changed files with 8 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ import { undoable } from '../undo';
import { Schedule as RSchedule } from '../util/rschedule';
import { findSchedules } from './find-schedules';
// Utilities
function zip(arr1, arr2) {
@@ -422,7 +423,7 @@ async function postTransactionForSchedule({ id }: { id: string }) {
payee: schedule._payee,
account: schedule._account,
amount: getScheduledAmount(schedule._amount),
date: schedule.next_date,
date: currentDay(),
schedule: schedule.id,
cleared: false,
};

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [Bhautik2902]
---
Fixed issue where early-posted scheduled transactions used the scheduled future date instead of today's date.