GNOME Bugzilla – Bug 517859
Effectless option in user defined reports
Last modified: 2018-06-29 22:01:22 UTC
Also seen under GnuCash 2.2.0 (openSuSE 10.3 distribution) All my installations are default setups in german (OS & GnuCash) Steps to reproduce * Create a report from your data "Erträge und Aufwendungen" => "Gewinn- und Verlustrechnung" * At report => right mouse key => "Berichtsoptionen" (Report options) * Change some settings in the report and give him a new report titel. Change under "Allgemein" (General) the "Stilvorlage" (Stylesheet) to "Bunt". * The report now looks like expected * Save the modified report Filemenu => "Bericht hinzufügen" (Add report), to access the report later over the userdefined reports. * See the result "saved-reports-2.0" of my example report following at the end. * Close the Tab of the report and then gnuCash * Start Gnucash again and open your userdefined report. * The report shows with all modified report options exept the stylesheet. The stylesheet is set to "Voreinstellung" (Default) The section (let ((option (gnc:lookup-option options "General" "Stylesheet"))) ((lambda (option) (if option ((gnc:option-setter option) 'Technicolor))) option)) into the "saved-reports-2.0" shows, that setting is saved. But is effectless Hubert H. "saved-reports-2.0" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Options for saved report "GuV laufendes Jahr", based on template "Income Statement" (let () (define (options-gen) (let ((options (gnc:report-template-new-options/name "Income Statement"))) ; Section: Display (let ((option (gnc:lookup-option options "Display" "Include accounts with zero total balances"))) ((lambda (option) (if option ((gnc:option-setter option) #f))) option)) (let ((option (gnc:lookup-option options "Display" "Omit zero balance figures"))) ((lambda (option) (if option ((gnc:option-setter option) #t))) option)) (let ((option (gnc:lookup-option options "Display" "Display accounts as hyperlinks"))) ((lambda (option) (if option ((gnc:option-setter option) #f))) option)) (let ((option (gnc:lookup-option options "Display" "Parent account balances"))) ((lambda (option) (if option ((gnc:option-setter option) 'recursive-bal))) option)) ; Section: Commodities ; Section: Accounts (let ((option (gnc:lookup-option options "Accounts" "Levels of Subaccounts"))) ((lambda (option) (if option ((gnc:option-setter option) '4))) option)) ; Section: General (let ((option (gnc:lookup-option options "General" "Report name"))) ((lambda (option) (if option ((gnc:option-setter option) "GuV laufendes Jahr"))) option)) (let ((option (gnc:lookup-option options "General" "Stylesheet"))) ((lambda (option) (if option ((gnc:option-setter option) 'Technicolor))) option)) ; Section: Entries options)) (gnc:define-report 'version 1 'name "GuV laufendes Jahr" 'options-generator options-gen 'menu-path (list gnc:menuname-custom) 'renderer (gnc:report-template-renderer/name "Income Statement"))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Hm, that worked for me in GnuCash 2.2.7. May you please retest it? Thanks!
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!
Hallo Andreas, Sorry for the long time I not answerd. I can reproduce the bug in all my 2.2.7 installations. Have You closed the tab with modified report before You close and restart the GnuCash program? Here are the steps. Start GnuCash with a datafile Open the report "Berichte" -> "Erträge & Aufwendungen" -> "Gewinn- und Verlustrechnung" RightMouseKey -> "Berichtsoptionen" (or Menu "Bearbeiten" -> "Berichtsoptionen") Category "Allgemein": Change "Berichtsname:" "Gewinn- und Verlustrechnung" to "TestGuV" Change "Stilvorlage:" "Voreinstellung" to "Bunt" Klick "OK" -> The report will shown in colors "File" -> "Bericht hinzufügen.." Close the tab "TestGuV" Close Gnucash Start Gnucash again Open the report "Berichte" -> "Benutzerdefiniert" -> "TestGuV" The report will now shown with the Stylesheet "Voreinstellung", not with "Bunt". Verify: RightMouseKey -> "Berichtsoptionen" Category "Allgemein" -> "Stilvorlage:" shows "Voreinstellung" Ich kann in allen meinen 2.2.7 Installationen diesen Fehler reproduzieren. Hast Du den Tab mit dem modifizierten Bericht vor Beendigung und Neustart von Gnucash geschlossen? Hier noch mal die Schritte, wie ich es nochmal durchprobiert habe. Starte GnuCash mit einer Datendatei Öffne den Bericht "Berichte" -> "Erträge & Aufwendungen" -> "Gewinn- und Verlustrechnung" RMT -> "Berichtsoptionen" (oder Menü "Bearbeiten" -> "Berichtsoptionen") Rubrik "Allgemein": Ändere "Berichtsname:" "Gewinn- und Verlustrechnung" in (z.B.) "TestGuV" Ändere "Stilvorlage:" "Voreinstellung" in "Bunt" Klick "OK" -> Bericht wird Bunt "Datei" -> "Bericht hinzufügen.." Schließe den Tab "TestGuV" Beende Gnucash Starte Gnucash wieder Öffne den Bericht "Berichte" -> "Benutzerdefiniert" -> "TestGuV" Der Bericht wird jetzt wieder mit der Stilvorlage "Voreinstellung" angezeigt. Kontrolle: RMT -> "Berichtsoptionen" Rubrik "Allgemein" -> "Stilvorlage:" steht wieder auf "Voreinstellung"
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 345980 ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=517859. Please update any external references or bookmarks.