GNOME Bugzilla – Bug 553020
Portfolio report does not work if share is splitted more than once
Last modified: 2018-06-29 22:10:24 UTC
Please describe the problem: Portfolio report do not compute base price is share is splitted more than once Steps to reproduce: 1. Create a share account 2. Split the share (including boni) set date X 3. Split the share a new once (including boni) set date Y Actual results: if advanced portfolio is put at date X it work but not after date Y Expected results: Correct computation of base price and portfolio. Portfolio item is not useable. Does this happen every time? Other information: I could send you my own budget, but I do not prefer to do so. I believe bug is reproductible. I have not tested in a new account tree.
I'm not sure a split works for even a single split. If there is a 2-for-1 split, for example, I would expect quantity X shares to go to 2*X, and the price to go from price P to P/2. Both before and after, the value is (X*P) and becomes (2*X * P/2). However, I found that if I set quantity to 2*X but do not set the price, the value goes from X*P to (2*X) * P. If I set quantity to 2*X and set price to P/2, the value goes from X * P/2 to 2*X * P/2.
I have just noticed this bug which appears to be the same as one I reported recently (BUG #587875). I can confirm it still appears in version 2.2.9. I have attached a couple of sample files that demonstrate the bug to the Bug mentioned above.
Created attachment 164274 [details] save file contains the bug
I have same problem on fund. I used to record my assets (in Korea Won, not US dollar) with gnucash 2.2.9 in gentoo Linux, and having same problem in "Advanced Portpolio". To reproduce it is simple, just split twice using [Actions]->[Stock Split...]. Attached file contains this bug in "Advanced Portfolio". If you remove the record, "06/22/10, Stock Split" in "Foo Value Func" account, the Portfolio will work.
I think these problems are fixed by the changes to the Advanced Portfolio report that I've checked in recently. The new version will be in the next release and you can get it now at http://svn.gnucash.org/trac/browser/gnucash/trunk/src/report/standard-reports/advanced-portfolio.scm. Let me know if you think it is still not fixed. I tried the test files attached to this bug report and they seem to work.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=553020. Please update any external references or bookmarks.