Bug 461288 - Next scheduled loan due date changes to wrong date
Summary: Next scheduled loan due date changes to wrong date
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.3
Platform: Mint (Ubuntu based) Linux
: NOR critical
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-01 12:49 UTC by Mark Medoff
Modified: 2023-03-06 03:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Medoff 2022-11-01 12:49:34 UTC
SUMMARY
My scheduled loan has been properly working since I started using KMy$ several years ago. In the last couple of months since updating to the latest appimages, I have had a problem that the next scheduled loan date changes to an incorrect date after entering the latest payment.
My loan was set up with an initial loan date on the 18th of the month and payments due on the first of each month. This worked correctly for over 2 years and then recently changed that after I enter a payment on the first of the month, the next payment is now scheduled for the 18th of the following month. I can save my file as an xml file and change the scheduled payment for the next month and it will display correctly in KMy$ but after I enter the scheduled transaction on the first of the month, it reverts to the 18th of the month for future months again.

NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Create a loan on the 18th of the month.
2.  Schedule payment on the first of month
3.  Enter payment on the first of month

OBSERVED RESULT
Future scheduled payments schedule on 18th of month

EXPECTED RESULT
Future payments should remain on 1st of month

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: Version 5.98.0
Qt Version: Version 5.15.5 (built against 5.15.5)

ADDITIONAL INFORMATION
currently using appimage 5.1-271
Comment 1 Thomas Baumgart 2023-02-04 14:14:52 UTC
Since you played around with the data in the xml file already, here's what you need to do: change the day in the startdate to 01 (in the example below 18) and the day in the postdate of the transaction to 01. That should do the trick. 

  <SCHEDULED_TX ....  startDate="2023-01-18" .... >
   <TRANSACTION postdate="2023-03-18" .... >

If you only change the postdate, the day will be overridden the next time. That is by design. The next due date (postdate of transaction) may be different due to holidays/weekends or even months that don't have the day. To revert back to the original day for monthly payments once the next payment is entered, the day is overridden with the orignal. Please confirm that this works for you. Thx.
Comment 2 Bug Janitor Service 2023-02-19 03:45:42 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2023-03-06 03:45:34 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!