Summary: | Incorrect price information in the kmymoney file for the investment transaction “add/remove shares” | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Ralf Habacker <ralf.habacker> |
Component: | file | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version First Reported In: | git (master) | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/office/kmymoney/-/commit/402d639624ddc7231f06e66a639651ff1fde93fd | Version Fixed In: | 5.2 |
Sentry Crash Report: | |||
Bug Depends on: | |||
Bug Blocks: | 498033 | ||
Attachments: | test file |
Description
Ralf Habacker
2025-01-07 15:37:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/office/kmymoney/-/merge_requests/256 Git commit b62d4334950e82360822501c093b9752b65e189e by Ralf Habacker. Committed on 21/01/2025 at 19:02. Pushed by habacker into branch 'master'. Fix saving zero prices for newly added "add/remove shares" transactions M +1 -1 kmymoney/plugins/sql/mymoneystoragesql_p.h M +1 -3 kmymoney/plugins/xml/mymoneyxmlwriter.cpp https://invent.kde.org/office/kmymoney/-/commit/b62d4334950e82360822501c093b9752b65e189e Git commit 39ac4b0d06d18788eb048c9d566a1a6623f153bf by Ralf Habacker. Committed on 21/01/2025 at 19:01. Pushed by habacker into branch 'master'. Rename MyMoneySplit::price() to possibleCalculatedPrice() The previously used method for querying the price performs additional calculations that are not suitable for saving in files and other output. In order to be able to query the price without further adjustments, the current method has been renamed and an additional method has been added. M +3 -3 kmymoney/converter/mymoneystatementreader.cpp M +4 -3 kmymoney/kmymoney.cpp M +6 -0 kmymoney/mymoney/mymoneysplit.cpp M +10 -4 kmymoney/mymoney/mymoneysplit.h M +1 -1 kmymoney/mymoney/splitmodel.cpp M +4 -4 kmymoney/mymoney/storage/journalmodel.cpp M +22 -9 kmymoney/mymoney/tests/mymoneysplit-test.cpp M +2 -0 kmymoney/mymoney/tests/mymoneysplit-test.h M +1 -1 kmymoney/plugins/csv/export/csvwriter.cpp M +1 -1 kmymoney/plugins/qif/export/mymoneyqifwriter.cpp M +1 -1 kmymoney/plugins/sql/mymoneystoragesql_p.h M +8 -6 kmymoney/plugins/views/reports/core/querytable.cpp M +2 -2 kmymoney/plugins/xml/mymoneyxmlwriter.cpp M +1 -1 kmymoney/views/investactivities.cpp M +2 -2 kmymoney/views/investtransactioneditor.cpp https://invent.kde.org/office/kmymoney/-/commit/39ac4b0d06d18788eb048c9d566a1a6623f153bf Git commit 3c472000438f06c0ba7532023dfc3c886cd219cd by Ralf Habacker. Committed on 21/01/2025 at 19:03. Pushed by habacker into branch 'master'. Adjust test file for investment reports M +6 -6 kmymoney/plugins/views/reports/core/tests/data/test-investment.xml https://invent.kde.org/office/kmymoney/-/commit/3c472000438f06c0ba7532023dfc3c886cd219cd Git commit 402d639624ddc7231f06e66a639651ff1fde93fd by Ralf Habacker. Committed on 21/01/2025 at 19:02. Pushed by habacker into branch 'master'. Fix loading of incorrect split prices for present "add/remove shares" transactions Related: bug 498401 FIXED-IN:5.2 M +32 -1 kmymoney/kmymoney.cpp M +1 -1 kmymoney/mymoney/mymoneyfile.h https://invent.kde.org/office/kmymoney/-/commit/402d639624ddc7231f06e66a639651ff1fde93fd |