Bug 330226 - Incorrect Net Worth report when adding/removing shares
Summary: Incorrect Net Worth report when adding/removing shares
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 00:55 UTC by Jan
Modified: 2016-02-21 16:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Testfile for screenshots (34.69 KB, text/xml)
2014-07-31 12:36 UTC, Cristian Oneț
Details
Net worth changed because details displayed (182.88 KB, image/png)
2014-07-31 12:39 UTC, Cristian Oneț
Details
Net worth not changed because only the investment account is displayed (169.32 KB, image/png)
2014-07-31 12:40 UTC, Cristian Oneț
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan 2014-01-21 00:55:05 UTC
The Net Worth report accounts for "Remove Share" operations by listing them under the "sells" column.  However, it ignores "Add Share" operations entirely.  Add/Remove share operations are often defined together, when the issuer of an investment terminates it and replaces it by a new one.  This leads to erroneous reports in KMM.

Reproducible: Always

Steps to Reproduce:
1.  Define Remove Shares operation for investment A: N shares, value V
2.  Define Add Shares operation for investment B: M shares, same date and value V
3.  Generate net worth report for (short) period containing date above.
Actual Results:  
Net worth has changed.

Expected Results:  
Net worth unchaned.

The "Add Shares" operation should have been included in the report under the "Buys" column.

Note:  the price applied to the removed shares (step 1. above) currently does not account for share splits of investment A that may have occurred between the date of the last known price and the the starting date of the report :  see bug 312135.
Comment 1 Cristian Oneț 2014-07-31 12:36:16 UTC
Created attachment 88054 [details]
Testfile for screenshots

Let me clarify a bit. This is not about the "Net Worth" report which works as expected but about the investment worth graph which is detailed for each investment. Thus I think you are looking at the wrong graph or you need to set the detail to "Top level" to show you the worth of the investment account not the worth of the stock sub accounts.
Comment 2 Cristian Oneț 2014-07-31 12:39:34 UTC
Created attachment 88055 [details]
Net worth changed because details displayed
Comment 3 Cristian Oneț 2014-07-31 12:40:08 UTC
Created attachment 88056 [details]
Net worth not changed because only the investment account is displayed
Comment 4 Cristian Oneț 2014-07-31 12:40:51 UTC
I think this works as expected. Plese let me know if this is not what you intended to report.
Comment 5 Jan 2016-02-21 16:14:51 UTC
I have revisited this and could not find anything wrong in KMM 4.6.4.  Thanks.