| Summary: | Invalid reinvestment transactions reported during consistency check | ||
|---|---|---|---|
| Product: | [Applications] kmymoney | Reporter: | Thomas Baumgart <tbaumgart> |
| Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 5.2.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/office/kmymoney/-/commit/398fdf12ec67796a940642dca74ff05a1d274ef2 | Version Fixed/Implemented In: | 5.2.1 |
| Sentry Crash Report: | |||
Git commit 1f6662e07a41d9050e3fec89e35f88d23db4be6b by Thomas Baumgart. Committed on 12/07/2025 at 11:32. Pushed by tbaumgart into branch 'master'. Fix problems with invalid reinvestment transactions in constency check Some institutions apparently provide a negative amount for a reinvested dividend while the number of shares is positive. This was somewhat ignored by versions prior to 5.2.0 but will now be caught by the consistency check. This change provides a fix to the consistency check so that the affected invalid transactions are corrected. FIXED-IN: 5.2.1 M +24 -2 kmymoney/mymoney/mymoneyfile.cpp https://invent.kde.org/office/kmymoney/-/commit/1f6662e07a41d9050e3fec89e35f88d23db4be6b Git commit 398fdf12ec67796a940642dca74ff05a1d274ef2 by Thomas Baumgart. Committed on 13/07/2025 at 06:33. Pushed by tbaumgart into branch '5.2'. Fix problems with invalid reinvestment transactions in constency check Some institutions apparently provide a negative amount for a reinvested dividend while the number of shares is positive. This was somewhat ignored by versions prior to 5.2.0 but will now be caught by the consistency check. This change provides a fix to the consistency check so that the affected invalid transactions are corrected. FIXED-IN: 5.2.1 (cherry picked from commit 1f6662e07a41d9050e3fec89e35f88d23db4be6b) M +24 -2 kmymoney/mymoney/mymoneyfile.cpp https://invent.kde.org/office/kmymoney/-/commit/398fdf12ec67796a940642dca74ff05a1d274ef2 |
SUMMARY Some institutions apparently provide a negative amount for a reinvested dividend while the number of shares is positive. This was somewhat ignored by versions prior to 5.2.0 but will now be caught by the consistency check. This was first reported on https://discuss.kde.org/t/kmymoney-5-2-upgrade-consistency-check-problems/36221/11 STEPS TO REPRODUCE 1. Open file stored with 5.1.3 that contains imported reinvestment transactions from such a bank 2. Run consistency check or save the file after additional changes were made with 5.2.0 OBSERVED RESULT All transactions are reported but no fix is applied. EXPECTED RESULT All transactions are reported and automatically fixed by KMyMoney ADDITIONAL INFORMATION A fix of the statement reader to prevent this scenario in the future is already available in master and 5.2 branches.