Bug 507519 - new feature: run "enter next transaction" for all overdue scheduled transactions from the past in one shot
Summary: new feature: run "enter next transaction" for all overdue scheduled transacti...
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.2.0
Platform: Debian stable Linux
: NOR wishlist
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-26 18:38 UTC by surcouf
Modified: 2025-07-26 18:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
.kmy file with test data for one mortgage as described in the ticket (4.73 KB, application/gzip)
2025-07-26 18:38 UTC, surcouf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description surcouf 2025-07-26 18:38:29 UTC
Created attachment 183539 [details]
.kmy file with test data for one mortgage as described in the ticket

SUMMARY
i suggest this feature:
 - ability to run "enter next transaction" for all overdue scheduled transactions from the past in one shot.

In the version 5.2.0, when you create a new loan account in the software, and this loan has history in the past, KMyMoney creates one scheduled transaction. It manages the loan in the future. 
But what happen to the overdue transactions if the real loan starting date is before the day one creates it in the software?


STEPS TO REPRODUCE

1. In KMyMoney settings, go to Ledger -> activate "display overdue schedules with planned dates"

2. today is July 26th 2025, create a new loan account for a mortgage, e.g.
* Loan amount: 100.000 €
* start date: Jan 1st 2024
* duration 24 months
* interest rate: 4%
* monthly repayment: 3.000 €
* the balloon amount will be calculated in the software

(see attached .kmy files with this example as test data) 
3. KMyMoney creates 19 overdue scheduled transactions and shows them (greyed-out) in the ledger of the repaying account (current account). These transactions are shown, but they are neither booked nor saved in the ledger. These transactions have two splits:
   - Amortization (paid to the asset account, e.g. the flat paid with the mortgage) 
   - the mortgage interest (paid to the category "loan:loan interests"


OBSERVED RESULT
In order to let KMyMoney really book this history of 19 overdue scheduled transactions in the ledger, i need to right-click one each of these transactions in the ledger and then click on "enter next transaction".

EXPECTED RESULT
i can select the 19 overdue scheduled transactions alltogether and with one click execute the "enter next transaction" function on all 19 overdue scheduled transactions.
The feature also has to make sure to catch any extra payments because they have a major influence on the interest payments. An idea would be to limit the execution up to the next extra payment.

SOFTWARE/OS VERSIONS
KMyMoney 5.2.0-2cbd7a8
Debian GNU/Linux 12 (bookworm) 12 (x86_64)

ADDITIONAL INFORMATION
This feature wish comes from this discussion: https://discuss.kde.org/t/creating-a-currently-running-mortgage-in-kmymoney/37610