Created attachment 59196 [details]
A kmymoney file with the bugs reported. Note that I increase the stock price due a float point exception.
Version: SVN trunk (using KDE 4.6.1)
* Do not sum added shares in "Buys";
* Sum all pieces of a Dividend / Yeld split transaction.
Steps to Reproduce:
Create an investment and buy 1000.00 in stocks, 10 each;
Add 10 stocks.
Create another investment and buy 1000.00 in stocks, 10 each;
Add dividends in a split transaction, 20 in dividends, 10 in taxes.
The first Investment Performance report display 1100 in buys.
The second Investment Performance report display 20 in dividends paid out.
The first Investment Performance report stock should display 1000 in buys.
The second Investment Performance report stock should display 10 in dividends paid out.
Created attachment 59197 [details]
This patch should fix the problems that I described
SVN commit 1230067 by asoliverez:
Fix reporting of dividends and added shares. Patch provided by Jose Arthur Benetasso Villanova.
M +4 -8 querytable.cpp
WebSVN link: http://websvn.kde.org/?view=rev&revision=1230067