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 345385 - Investment portfolio report sorting cannot be configured
Investment portfolio report sorting cannot be configured
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: Reports
git-master
Other Linux
: Normal enhancement
: ---
Assigned To: gnucash-reports-maint
gnucash-reports-maint
: 334662 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-06-20 06:37 UTC by David Wilson
Modified: 2018-06-29 21:08 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
screen pic of stock accounts in 1.9.8 (83.76 KB, image/png)
2006-06-20 11:10 UTC, David Wilson
Details
Investment Porfolio report 1.9.8 (30.97 KB, image/png)
2006-06-20 11:14 UTC, David Wilson
Details
Investment Portfolio report in 1.8.12 (20.50 KB, image/png)
2006-06-20 11:18 UTC, David Wilson
Details

Description David Wilson 2006-06-20 06:37:58 UTC
Not sure if this is a bug or an 'enhancement'

I have two lots stocks, one lot  in a folder for my stocks an other lot in a folder for my wife.

in 1.8.12 the stocks were listed in two groups,  a group for each owner.

in 1.9.8 the stocks are all sorted in one group.

I prefer the previous sorting - perhaps an option could be added for the user to select.

In general 1.9.X is looking very good. Great work.

regards
David
Comment 1 Christian Stimming 2006-06-20 08:56:23 UTC
I don't understand what you mean by "folder" and I also don't understand what you mean where they were sorted. Do you mean you had stocks in one "account" and another one in another "account"? But where are they "listed" or "sorted"? Do you mean they were listed in the register window for one account, or in the register window of the General Ledger, or in some report? Please add more detailed descriptions here. Thanks.
Comment 2 David Wilson 2006-06-20 11:10:36 UTC
Created attachment 67704 [details]
screen pic of stock accounts in 1.9.8

screen pic showing folder (sub account) structure for stock holdings
dnw = me crm = my wife
Comment 3 David Wilson 2006-06-20 11:14:22 UTC
Created attachment 67705 [details]
Investment Porfolio report 1.9.8

Note the stocks are all sorted in alphabetical order.
Comment 4 David Wilson 2006-06-20 11:18:07 UTC
Created attachment 67706 [details]
Investment Portfolio report in 1.8.12

Note the stocks are in two groups CRM's stocks Alumia - Sims and DN's stocks  Consolidate - Westfield

Distribution Suse 10
   gconf-2.0
        libgnomeui-2.0          >= 2.0.0
        libgsf-gnome-1          >= 1.12.2
  ... checking for
        glib-2.0                >= 2.4.7
        gobject-2.0             >= 2.4.7
        gmodule-2.0             >= 2.4.7
        libxml-2.0              >= 2.4.12
        pango                   >= 1.6.0
        pangoft2                >= 1.6.0

        gtk+-2.0                >= 2.4.13
        libglade-2.0            >= 2.3.6
        libgnomeprint-2.2       >= 2.8.0
        libart-2.0              >= 2.3.11
Comment 5 Christian Stimming 2006-06-20 12:15:47 UTC
Ok, I understand. So you'd like to have the possibility to sort the stocks in the investment portfolio report "according to their account tree grouping". In 1.8.12 this behaviour was the default, but in 1.9.x it is no more. Very well, I guess that shouldn't be too difficult. 

Turns out the "sorting" has been introduced by http://svn.gnucash.org/trac/changeset/13244#file4 but it's hard-coded as "sort alphabetically by account name". 

As a workaround you could edit the file src/report/standard-reports/portfolio.scm and delete the lines 234 through 238, then execute "make install" in that directory again. This should restore your 1.8.x behaviour until someone comes around and adds an explicit option for choosing the sort method.
Comment 6 Christian Stimming 2006-06-20 12:17:22 UTC
For the record: The "advanced portfolio" report would need that very same option, as a hard-coded sorting has been introduced by the very same changeset as above.
Comment 7 Christian Stimming 2006-06-20 12:20:36 UTC
*** Bug 334662 has been marked as a duplicate of this bug. ***
Comment 8 David Wilson 2006-06-20 23:46:40 UTC
Thanks I have deleted those lines and the report working as before

If someone gets around to adding an explicit option for
choosing the sort method, then it would make sense to also add an option to show the subheadings for the groups according to their account tree grouping.
My report has the two separate groups but not a heading for each group. I only have two groups so this not a big problem, but others may have more groups.

regards

David
Comment 9 David Hampton 2006-06-28 03:47:46 UTC
I've restored the original sort ordering as a temporary fix.  These reports should eventually be enhanced to show the account grouping.
Comment 10 Carsten Rinke 2013-04-24 09:59:56 UTC
As
- there does not seem to be work in progress
- this bug suggests a new feature
I suggest to
- change the severity to "Enhancement"
- change the status to NEW.
Comment 11 Geert Janssens 2013-12-08 14:51:20 UTC
Changed the bug status as per Carsten's recommendations in comment 10.
Comment 12 John Ralls 2018-06-29 21:08:28 UTC
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=345385. Please continue processing the bug there and please update any external references or bookmarks.