[kmymoney] [Bug 498033] Unclear definition for investment transaction ‘addition of shares’
Ralf Habacker
bugzilla_noreply at kde.org
Wed Jan 1 06:22:07 GMT 2025
https://bugs.kde.org/show_bug.cgi?id=498033
--- Comment #11 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Thomas Baumgart from comment #4)
> Therefore, the value has to be zero and that is achieved by a price of zero (shares * price = value).
I traced into the generating of this report and found
https://invent.kde.org/office/kmymoney/-/blob/master/kmymoney/plugins/views/reports/core/querytable.cpp#L991
qS[ctValue] = ((*it_split).shares() * xr).convert(fraction).toString();
At this point, xr is equal to 1.0, which is used as the price and generates a
value != 0.0
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the KMyMoney-devel
mailing list