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 642292 - General Ledger report - 'Primary Sort Key' value is not persistent
General Ledger report - 'Primary Sort Key' value is not persistent
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Reports
2.4.x
Other Windows
: Normal minor
: ---
Assigned To: gnucash-reports-maint
gnucash-reports-maint
: 689890 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-02-14 13:41 UTC by markus
Modified: 2018-06-29 22:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description markus 2011-02-14 13:41:58 UTC
Default value for the 'Primary Sort Key' in the setup of a Transaction Report is the value 'account code'. You can change it to another value (I use account name), but it keeps only for the session. Close GnuCash, restart it and the default value is used.

Checking the gcm-file with all the definitions of my GUI, you find:

####
PageType=GncPluginPageReport
PageName=Buchungsbericht 2010
SchemeOptions=(let ((options (gnc:report-template-new-options/report-guid "2e22929e5c5b4b769f615a815ef0c20f" "General Ledger"))) (let ((option (gnc:lookup-option options "Sorting" "Secondary Key"))) ((lambda (option) (if option ((gnc:option-setter option) 'date))) option)) (let ((option (gnc:lookup-option options "Sorting" "Primary Key"))) ((lambda (option) (if option ((gnc:option-setter option) 'account-code))) option))...
###

If I change in the last line of the seen code-snippet the value 'account-code' to 'account-name' it works fine when I start GnuCash. I terminate the program and the file will be changed and this part of 'option' is completely gone. Restart GnuCash and the value 'account-code' is back.

This phenomenon occurred also in 2.2.9
Comment 1 Carsten Rinke 2013-04-29 10:45:31 UTC
Hi Markus,

it appears you tried to change the settings in a saved report which is currently not supported.
In that case, this bug is a duplicate of e.g. 605032 or 527726

Can you confirm?
Comment 2 markus 2013-05-13 17:01:01 UTC
No confirmation.

my recent result of analysis (and solution):
Both Report-Types, "Transaction Report" and "General Ledger" (template-names), offers the option to define "Account Name" as the primary key. But only the "Transaction Report" consider the choice of this option.

The "General Ledger" Type  keeps to  "Account Code" as Primary Key after re-open of file.

kind regards, markus
Comment 3 Geert Janssens 2013-12-08 18:31:18 UTC
So if I understand this well, the bug is related to the general ledger. I'll update the bug title to reflect this.
Comment 4 Geert Janssens 2013-12-10 17:34:46 UTC
*** Bug 689890 has been marked as a duplicate of this bug. ***
Comment 5 veigajose 2014-01-13 11:31:17 UTC
I have this issue on GnuCash 2.6.0 rev 38a0d33+ on 2013-12-29 (on Mac OS X 10.5.7) in the way that is describe in the bug 689890. In my case, I cannot save the "General Legder"-type reports display "Num" and "Totals" features. The same thing about "Transaction"-typ reports.

It nor a severe bug but it is insidous.
Comment 6 Sebastian Berthold 2016-03-22 20:41:32 UTC
Same problem with 2.6.11. Some options in "General Ledger" won't be saved.
Comment 7 Geert Janssens 2016-03-23 17:34:22 UTC
Thank you for bringing this up again. I finally figured out what went wrong and pushed a fix to the stable branch. The fix will appear in the next gnucash release (2.6.12).
Comment 8 John Ralls 2018-06-29 22:53:42 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=642292. Please update any external references or bookmarks.