Bug 452451 - Split transaction editor erase negative value when editing
Summary: Split transaction editor erase negative value when editing
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-10 02:38 UTC by Jonatan Cloutier
Modified: 2023-02-08 12:34 UTC (History)
1 user (show)

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 Jonatan Cloutier 2022-04-10 02:38:40 UTC
SUMMARY
When editing split transaction where the value is negative (e.g.: adjusting the interest paid on loan payment) the value disappears when trying to edit it. For positive numbers, it stays there as expected. The main issue coming from that is that I mostly edit that value to adjust some miscalculation on the interest paid on a loan and it's very easy to just take the actual number + the difference between the current amount in the bank account and in kmymoney. (ps, the miscalculation is certainly coming from a misconfig or a misunderstanding of the parameter of my loan, not from kmymoney)


STEPS TO REPRODUCE
1. Create a new transaction
2. go in the split editor
3. set a category
4. set a negative amount (e.g.: -10.00)
5. Validate the input
6. double click on the amount to edit it

OBSERVED RESULT
The amount is empty when editing it

EXPECTED RESULT
Like for a positive amount, it should stay when editing the value

SOFTWARE/OS VERSIONS  archlinux
Linux/KDE Plasma: archlinux
(available in About System)
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Jonatan Cloutier 2022-04-10 02:42:46 UTC
Might not be directly related, but apparently the calculator result doesn't get set either for negative value. I could open a different issue if needed.