Summary: | Split Shares yields to wrong Investment Performance Reports | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Jan Ritzerfeld <kde> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jan_cecile, lukasz.wojnilowicz |
Priority: | NOR | ||
Version: | 4.6.0 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | 88173ce91714e57464b4db586eb3e395fd8e85cb | Version Fixed In: | 5.0.0 |
Sentry Crash Report: | |||
Attachments: | An almost minimal kmy file showing the problem |
Description
Jan Ritzerfeld
2012-12-23 21:13:48 UTC
Created attachment 75990 [details]
An almost minimal kmy file showing the problem
I just noticed the same problem: My Performance Report for the year 2011 includes a line with a Share Split on July 13, 2011. There were two Sell transactions before the split and one Buy transaction after the split: 01/31/11 Sell for 7598.88 02/25/11 Sell for 3031.75 07/13/11 Split 1/0.758783 12/02/11 Buy for 1868.51 In the report, the column "Sells" shows an amount -10630.63, which is correct (7598.88+3031.75 = 10630.63). However, the column "Buys" shows an amount of 1948.26. This is incorrect. A split affetcs the number of shares, but not the total value. Whatever the logic is concerning the number of shares, the amounts should always match. Further to the above, another investment with no transactions whatsoever during the reporting period other than a share split shows a nonzero amount for the shares bought. The Net Worth report computes the value of the shares at the start of the report period. The value seems to be defined as the number of shares at the start of the period, multiplied by the last known price. If a stock split intervened between the date of the last known price and the start of the reporting period, it is **not** applied to the price. A possible fix is to find such splits and apply them, or, when a stock split operation is entered, apply it retroactively to all stored share prices and volumes. I loaded your .kmy and under buys there is -599.99 Euro which equals 7 x 75 Euro + 1 x 74,99 Euro, so probably this issue was fixed by 88173ce91714e57464b4db586eb3e395fd8e85cb. (In reply to NSLW from comment #5) > I loaded your .kmy and under buys there is -599.99 Euro which equals 7 x 75 > Euro + 1 x 74,99 Euro, so probably this issue was fixed by > 88173ce91714e57464b4db586eb3e395fd8e85cb. Thank you very much! |