Summary: | Investment price reports do not work for prices over a certain age | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | David Houlden <djhoulden> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | asoliverez, onet.cristian |
Priority: | NOR | ||
Version: | git (master) | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kmymoney/c66adb3d2507db01c3f56e56fa4be83f12927a8e | Version Fixed In: | 5.0.0 |
Sentry Crash Report: | |||
Attachments: | Test file to show the problem |
I can confirm this happens. The problem is somewhere in the KDChart code. For prices, it is set to only feed into the dataset the values that are not zero. Apparently, when the number of skipped values is too high, the graph shows garbage. I confirmed that the values fed into the chart are the correct ones, and if zero columns are trimmed, it displays correctly. Reproduced this using 4.6.4. Git commit c66adb3d2507db01c3f56e56fa4be83f12927a8e by Łukasz Wojniłowicz. Committed on 11/09/2017 at 16:52. Pushed by wojnilowicz into branch 'master'. Don't depend on transactions in prices report FIXED-IN:5.0 Signed-off-by: Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> M +159 -143 kmymoney/reports/pivottable.cpp https://commits.kde.org/kmymoney/c66adb3d2507db01c3f56e56fa4be83f12927a8e |
Created attachment 69078 [details] Test file to show the problem Version: git master (using KDE 4.6.5) OS: Linux For my investment accounts I have price history going back several years. If I configure an Investment Price Graph to show this history, when I get back to a certain point in time the chart shows incorrect values. Attached is a test file which shows the problem. It has price history going back to 1st Jan 2010. There are two custom reports. The investment price graph with a start date of 1st June 2010 is correct. The investment price graph with a start date of 1st May 2010 shows incorrect prices until the last entry where you can see a large spike on the graph. Reproducible: Always Steps to Reproduce: Open the attached file and view the two custom charts. Actual Results: Prices are wrong on the chart when the report start date is before a certain date. Expected Results: Prices should be shown correctly.