[GNC] Balsheet-eg.scm problem

Alex Kempshall alexkempshall at btinternet.com
Sun Aug 26 12:31:12 EDT 2018


I have a customised balance sheet report based on

/usr/share/gnucash/scm/gnucash/report/balsheet-eg.scm

which has a report-guid  of "2e3751edeb7544e8a20fd19e9d08bb65"

If I look in the file .local/share/gnucash/saved-reports-2.8

I find this

> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;; Options for saved report "Pleckbond Balance Sheet (eguile) 
> 2018071", based on template "2e3751edeb7544e8a20fd19e9d08bb65"
> (let ()
>   (define (options-gen)
>     (let
>          (
>            (options (gnc:report-template-new-options/report-guid 
> "2e3751edeb7544e8a20fd19e9d08bb65" "Balance Sheet (eguile)"))
>            (new-embedded-report-ids '()) ;; only used with Multicolumn 
> View Reports
>          )
> ; Section: General
other stuff
>   (gnc:define-report
>     'version 1
>     'name "Pleckbond Balance Sheet (eguile) 2018071"
>     'report-guid "6e1d6178b2eb431f8e650772779f9319"
>     'parent-type "2e3751edeb7544e8a20fd19e9d08bb65"
>     'options-generator options-gen
>     'menu-path (list gnc:menuname-custom)
>     'renderer (gnc:report-template-renderer/report-guid 
> "2e3751edeb7544e8a20fd19e9d08bb65" "Balance Sheet (eguile)")
>   )




On 26/08/18 05:15, Stephen M. Butler wrote:
> On 08/25/2018 02:15 AM, Geert Janssens wrote:
> <snip>
>> Having said all that my original question was what problems you had when
>> setting up the report as decribed in
>> https://wiki.gnucash.org/wiki/Custom_Reports#Loading_Your_Report
>> With that I meant what problems did you encounter when storing *all three
>> files* in $HOME/.local/share/gnucash and creating a load file in
> I hadn't picked up that the files had to be in that folder.  So had left
> them in the report folder.
>> $HOME/.config/gnucash called config-user.scm with this content:
>> (load (gnc-build-userdata-path "balsheet-fmtd.scm"))
> I had given the path to the report folder.
>> This works equally well on my system and is recommended.
>>
>> So what issues do you get when setting up the reports in your home directory ?
> It appears to be ignored.
>
> I moved the three files to $HOME/.local/share/gnucash (bold in the below
> list):
>
> $ pwd
> /home/steve/.local/share/gnucash
> $ ls -l
> total 164
> -rw-r--r-- 1 steve steve 19148 Aug 25 21:03 accelerator-map
> *-rw-r--r-- 1 steve steve 11472 Aug 25 20:58 balsheet-fmtd.eguile.scm**
> **-rw-r--r-- 1 steve steve 33386 Aug 25 20:58 balsheet-fmtd.scm**
> **d*rwxrwxr-x 2 steve steve  4096 Jul  1 19:03 books-rw-r--r-- 1 steve
> steve  1240 Aug 25 20:58 stylesheet-reports.css
> -drwxrwxr-x 2 steve steve  4096 Jun 22 12:38 checks
> -rw-rw-r-- 1 steve steve     0 Aug 25 21:03 expressions-2.0
> -rw-rw-r-- 1 steve steve  7877 Aug 13 11:00 saved-reports-2.8
> -rw-rw-r-- 1 steve steve  3121 Aug 13 11:00 saved-reports-2.8-backup
> *-rw-r--r-- 1 steve steve  1240 Aug 25 20:58 stylesheet-reports.css**
> **-*rw-rw-r-- 1 steve steve  1614 Aug 25 21:03 stylesheets-2.0
> drwxrwxr-x 2 steve steve  4096 Jun 22 12:38 translog
>
> Created the gnucash folder and config.user file in .config:
>
> $ pwd
> /home/steve/.config/gnucash
> $ ls -l
> total 12
> -rw-r--r-- 1 steve steve 53 Aug 25 20:56 config.user
> $ cat config.user
> (load (gnc-build-userdata-path "balsheet-fmtd.scm"))
>
>
> The report isn't loaded and there is no error message.
> gnucash --logto stdout
>
> (gnucash:5078): Gtk-WARNING **: 21:00:39.924: Theme parsing error:
> gtk.css:1278:13: The 'icon-shadow' property has been renamed to
> '-gtk-icon-shadow'
>
> (gnucash:5078): Gtk-WARNING **: 21:00:39.924: Theme parsing error:
> gtk.css:1281:15: The 'icon-shadow' property has been renamed to
> '-gtk-icon-shadow'
> ;;; note: source file
> /usr/local/share/gnucash/scm/gnucash/report/business-reports.scm
> ;;;       newer than compiled
> /usr/local/lib/gnucash/scm/ccache/2.0/gnucash/report/business-reports.go
> ;;; found fresh local cache at
> /home/steve/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/share/gnucash/scm/gnucash/report/business-reports.scm.go
>
>
>
> Sorry to be so dense but I'm obviously missing something.
> --Steve
>



More information about the gnucash-user mailing list