[GNC] Custom invoices don't work after upgrade

Derek Atkins derek at ihtfp.com
Tue May 21 09:24:08 EDT 2019


Hi,

JB <iulyb at buliga.net> writes:

> Hi,
> I have the same exact issue. 
> An error occurred when processing the template:
>
> Unbound variable: qof-book-get-slots
[snip]
>
> Is it possible to post the diff regarding    (slots       
> (qof-book-get-slots book))  ?

The slots are now hidden under the implementation.  You will need to use
the specific getter APIs to get to the underlying data.

> This is the relevand portion of code:
[snip]
>            (slots        (qof-book-get-slots book))
>            (coyname      (coy-info slots gnc:*company-name*))
>            (coycontact   (coy-info slots gnc:*company-contact*))
>            (coyaddr      (coy-info slots gnc:*company-addy*))
>            (coyid        (coy-info slots gnc:*company-id*))
>            (coyphone     (coy-info slots gnc:*company-phone*))
>            (coyfax       (coy-info slots gnc:*company-fax*))
>            (coyurl       (coy-info slots gnc:*company-url*))
>            (coyemail     (coy-info slots gnc:*company-email*))
>
> I used same invoice for about 6 years so I am interested to fix it. 

I don't know what "coy-info" is, but looking at the current invoice.scm
code, you will need to change these to, e.g.:
      (coyname  (gnc:company-info book gnc:*company-name*))
      ...

Hope this helps,

> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

-derek
-- 
       Derek Atkins                 617-623-3745
       derek at ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant


More information about the gnucash-user mailing list