GNOME Bugzilla – Bug 642292
General Ledger report - 'Primary Sort Key' value is not persistent
Last modified: 2018-06-29 22:53:42 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
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?
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
So if I understand this well, the bug is related to the general ledger. I'll update the bug title to reflect this.
*** Bug 689890 has been marked as a duplicate of this bug. ***
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.
Same problem with 2.6.11. Some options in "General Ledger" won't be saved.
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).
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.