Bug 475501

Summary: account type loan, modus I am lending money, generated scheduled transaction never ends
Product: [Applications] kmymoney Reporter: Peter <p>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.1.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Peter 2023-10-12 06:33:00 UTC
SUMMARY
***
the definition and calculation seems to be correct - but the scheduled transaction ignors end point

***

Definition:
I am lending money
1st payment 01.01.2024

loan amount: 5000
interrest: rate: 5%
term: 10 Months (automatic calculated)
principal + interrest: 500
Final amortisation payment: -114,81 (why minus?)

scheduled transaction seems to run for ever, it doesn't stop at 01.10.2024.

first I found it in Graphics/reports - the account runs negativ  

I am using kmymoney for many years, for next years investing money as additional pension, I did all the calculation in librecalc and transfering every booking by hand into kmymoney.
Now I understand the account type loan - and it seems to work very well - the automatic calculated results fits with my models - but in real it doesn't function.

For now, I have to go back manuell calulation/bocking.

SOFTWARE/OS VERSIONS
Xubuntu 
Distributor ID:	Ubuntu
Description:	Ubuntu 23.04
Release:	23.04
Codename:	lunar
Comment 1 Jack 2023-11-18 22:48:04 UTC
I think the negative final payment is because the money is being paid to you, not what you are paying someone else, so it may look odd, but I think it is OK.
I've replicated this issue, and suspect it will take me a while to figure out exactly what is going on.   My current suspicion, before actually looking at the code, is that scheduled transactions for loan accounts are handled specially in terms of adjusting the interest and amortization amounts and also determining when the schedule actually ends.