<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Thomas,<br>
<br>
<br>
<div class="moz-cite-prefix">Op 16-04-2022 om 09:03 schreef Thomas
Baumgart via KMyMoney:<br>
</div>
<blockquote type="cite" cite="mid:825052295.0ifERbkFSE@thb-nb"><br>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">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.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
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.</pre>
</blockquote>
That does indeed makes sense for a yearly report.<br>
<br>
<blockquote type="cite" cite="mid:825052295.0ifERbkFSE@thb-nb">
<pre class="moz-quote-pre" wrap="">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.</pre>
</blockquote>
That would probably also impact other reports, so I'm sure if that
is the way to go. It would also introduce history falsification.<br>
<br>
<blockquote type="cite" cite="mid:825052295.0ifERbkFSE@thb-nb">
<pre class="moz-quote-pre" wrap="">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.
</pre>
</blockquote>
Thanks a bunch. I'll have a look and brush up my rusty development
skills.<br>
<br>
Koos<br>
<br>
</body>
</html>