Bug 513834

Summary: Planned expense Reports: "every n <timeperiod>" does only print once in reports
Product: [Applications] kmymoney Reporter: Michael Knöfler <michael_knoefler>
Component: reportsAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal CC: michael_knoefler
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.2.2
Sentry Crash Report:
Attachments: Option <3><month>
Option <every three month>
Option in expense planning

Description Michael Knöfler 2025-12-26 11:53:37 UTC
Created attachment 187994 [details]
Option <3><month>

Hi, 

when I create a planned expence and it occures every three month, I have the option to say <3><month> or <every 3 month>.
When choosing the second option, the expense is only displayed and calculated once in a yearly report.
When choosing the first option it works and the expense is displayed and calculated every third month correctly.
Comment 1 Michael Knöfler 2025-12-26 11:54:02 UTC
Created attachment 187995 [details]
Option <every three month>
Comment 2 Michael Knöfler 2025-12-26 11:55:55 UTC
Created attachment 187996 [details]
Option in expense  planning
Comment 3 Thomas Baumgart 2025-12-27 13:39:33 UTC
Git commit 59a712ddbf6a50dd86e692e2d92fb8740996e4f5 by Thomas Baumgart.
Committed on 27/12/2025 at 13:39.
Pushed by tbaumgart into branch 'master'.

Fix generation of payment dates in MyMoneySchedule

Not all occurrece periods were implemented. Added testcases and
implementation.
FIXED-IN: 5.2.2

M  +78   -26   kmymoney/mymoney/mymoneyschedule.cpp
M  +136  -0    kmymoney/mymoney/tests/test-mymoneyschedule.cpp
M  +1    -0    kmymoney/mymoney/tests/test-mymoneyschedule.h

https://invent.kde.org/office/kmymoney/-/commit/59a712ddbf6a50dd86e692e2d92fb8740996e4f5
Comment 4 Thomas Baumgart 2025-12-27 13:44:10 UTC
Git commit 9d795dbdaa9f335c25841578c86a044b87d98117 by Thomas Baumgart.
Committed on 27/12/2025 at 13:40.
Pushed by tbaumgart into branch '5.2'.

Fix generation of payment dates in MyMoneySchedule

Not all occurrece periods were implemented. Added testcases and
implementation.
FIXED-IN: 5.2.2
(cherry picked from commit 59a712ddbf6a50dd86e692e2d92fb8740996e4f5)

M  +78   -26   kmymoney/mymoney/mymoneyschedule.cpp
M  +136  -0    kmymoney/mymoney/tests/mymoneyschedule-test.cpp
M  +1    -0    kmymoney/mymoney/tests/mymoneyschedule-test.h

https://invent.kde.org/office/kmymoney/-/commit/9d795dbdaa9f335c25841578c86a044b87d98117