Bug 513777

Summary: KMyMoney Undo Entry Creation
Product: [Applications] kmymoney Reporter: pc <junk_2010>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.2.1   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshots etc showing undo entry issue

Description pc 2025-12-24 10:37:27 UTC
Created attachment 187934 [details]
screenshots etc showing undo entry issue

SUMMARY
In a credit card account if I delete a “Charge” entry, and then using the toolbar “Undo” button, I am expecting the account to be the same as before the deletion. This does not appear to be the case as when I use the “Undo” button two entries are created, a “Charge” and a “Credit”.
However, if I now now save the KMyMoney account file the unexpected “Credit” entry disappears and all is as expected.
The behaviour can be shown in a simple account setup.

I will attach a pdf showing screenshots.

STEPS TO REPRODUCE
1. Create a credit card account with a few entries
2. Delete a "Charge" entry
3. Using the toolbar "Undo" button to restore the deleted "Charge" entry

OBSERVED RESULT
After the "Undo" action two entries are created, a "Charge" and a "Payment"

EXPECTED RESULT
I was only expecting the deleted "Charge" payment to be be created.
Also note if I save the KMyMoney account file the unexpected "Payment" entry disappears.

SOFTWARE/OS VERSIONS
Windows 11
Ubuntu 24.04 using AppImage

ADDITIONAL INFORMATION
I will attach a pdf showing screenshots.
Comment 1 Thomas Baumgart 2025-12-25 08:55:20 UTC
Note: this one only shows in KF6/Qt6. On KF5/Qt5 KMyMoney works as expected.