No recipient name line in invoices

Mike Evans mikee at saxicola.idps.co.uk
Mon Feb 1 11:37:23 EST 2010


Excuse the cross posting from gnucash-users I meant to post here.

In company details I have filled in the appropriate boxes including the name of 
the person to receive the invoice.  However when I print the invoice I get the  
"Company Name" instead of the "Name" as the first line of the address.

There is a missing line to get the name. I have included a patch for business-
core.scm for consideration.

This apples in the stable and the SVN versions.  The invoice does include the 
"Company Name" as the first line of the address and perhaps it shouldn't.  
Maybe this should be an option?

--------------------------SNIP--------------------------

--- business-core-orig.scm      2010-02-01 16:20:06.000000000 +0000
+++ business-core.scm   2010-02-01 16:20:48.000000000 +0000
@@ -53,8 +53,9 @@
      ((null? (cdr lst)) (car lst))
      (else (string-append (build-string (cdr lst)) "\n" (car lst)))))
   (let ((lst '())
        (addr (gnc:owner-get-address owner)))
+       (set! lst (add-if-exists lst (gncAddressGetName addr)))
     (set! lst (add-if-exists lst (gncAddressGetAddr1 addr)))
     (set! lst (add-if-exists lst (gncAddressGetAddr2 addr)))
     (set! lst (add-if-exists lst (gncAddressGetAddr3 addr)))
     (set! lst (add-if-exists lst (gncAddressGetAddr4 addr)))

--------------------------SNIP--------------------------

-- 
GPG Key: 1024D/050895C2
Keyserver: http://pgp.mit.edu/          
Search String: 0x050895C2


More information about the gnucash-devel mailing list