Bug in investment reports?

Koos Pol kmymoney2 at pohw.nl
Sat Apr 16 19:06:49 BST 2022


Hi Thomas,


Op 16-04-2022 om 09:03 schreef Thomas Baumgart via KMyMoney:
>
>> It seem the investment related reports use the last known ticker price.
>> I need to know the original investment value (for the balance sheet). So
>> I'd expect the "Net worth by year" report to use the price of purchase,
>> not the last know price. Is that as intended? I think this could be
>> considered a bug.
>> (...)
>> Is it difficult to modify the logic of a report? (In a previous life I
>> was a professional Java developer). A pointer would be appreciated.
> The price used depends on the date (AFAIR) in the report. So the
> "Net worth by year" takes the price on Dec 31st for that matter.
That does indeed makes sense for a yearly report.

> The price could be the one of the last purchase/sale if no other
> information is available. Adding a price manually for Dec 31st thus
> could make a difference for you.
That would probably also impact other reports, so I'm sure if that is 
the way to go. It would also introduce history falsification.

> The reporting engine is a tricky beast. The core of it can be found in
> plugins/views/reports/core and for the networth report it would be the
> pivottable.cpp file. The definition of the default reports is located
> in plugins/views/reports/kreportsview_p.h in the method loadView().
>
> Again, I am not 100% sure about all the details of the report engine
> even more so if it comes to investments so the above might be mistaken.
Thanks a bunch. I'll have a look and brush up my rusty development skills.

Koos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney/attachments/20220416/b8808dc7/attachment.htm>


More information about the KMyMoney mailing list