After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 553020 - Portfolio report does not work if share is splitted more than once
Portfolio report does not work if share is splitted more than once
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Reports
2.2.x
Other All
: Normal normal
: ---
Assigned To: Andreas Köhler
Andreas Köhler
Depends on:
Blocks:
 
 
Reported: 2008-09-20 16:14 UTC by roucaries bastien
Modified: 2018-06-29 22:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
save file contains the bug (2.60 KB, application/octet-stream)
2010-06-22 02:16 UTC, Seong-Kook Shin
Details

Description roucaries bastien 2008-09-20 16:14:46 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.
Comment 1 Phil Longstaff 2009-04-28 21:57:30 UTC
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.
Comment 2 David Giddy 2009-08-16 11:23:47 UTC
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.
Comment 3 Seong-Kook Shin 2010-06-22 02:16:31 UTC
Created attachment 164274 [details]
save file contains the bug
Comment 4 Seong-Kook Shin 2010-06-22 02:17:10 UTC
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.
Comment 5 Mike Alexander 2014-01-20 06:36:14 UTC
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.
Comment 6 John Ralls 2018-06-29 22:10:24 UTC
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.