Bug 470640

Summary: Split transactions are difficult to enter
Product: [Applications] kmymoney Reporter: k6lw
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 5.1.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description k6lw 2023-06-04 17:53:50 UTC
SUMMARY
***
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
***
On AppImage 5.1.504, Editing a split transaction "adds" any changed amount to the existing amount.


STEPS TO REPRODUCE
1. Add new transaction selecting a similar previous one
2. Enter split transaction screen.
3. Click on an amount to edit.
4. Enter new amount and press enter. The number will change, but not to the amount you entered. 

OBSERVED RESULT
Tried to change a value of -1678 to value -1888 and the window showed -3566

EXPECTED RESULT
-1888 should have been shown

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Current LTE version
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Sorry, not on my linux partition and don't want to reboot machine to find out and then need to start over.
Comment 1 k6lw 2023-06-07 06:11:14 UTC
Kubuntu version 22.04
Plasma Version 5.24.7
Framework 5.92.0
QT 5.15.3
Kernal 5.15.0-73

KMyMoney 5.1.3-3bdff3d4b
Comment 2 Thomas Baumgart 2023-06-07 15:13:55 UTC
That is by design. In your case, pressing the minus sign opens the calculator and subtracts the value you enter (1888) from the number that is already in the edit widget (-1678). That sum sure is -3566. A workaround is to clear the value in the widget first by pressing the delete button. Upcoming versions of KMyMoney have separate edit widgets for debit and credit values and there is no need to enter negative values anymore.