[invoice] render tax/tax number into 'our-details' section

This commit is contained in:
Christopher Lam 2019-09-20 10:39:33 +08:00
parent 2da5944596
commit 7a662272b3

View File

@ -729,6 +729,7 @@ for styling the invoice. Please see the exported report for the CSS class names.
(fax (gnc:company-info book gnc:*company-fax*))
(email (gnc:company-info book gnc:*company-email*))
(url (gnc:company-info book gnc:*company-url*))
(taxnr (gnc:option-get-value book gnc:*tax-label* gnc:*tax-nr-label*))
(taxid (gnc:company-info book gnc:*company-id*)))
(if (and name (not (string-null? name)))
@ -766,6 +767,11 @@ for styling the invoice. Please see the exported report for the CSS class names.
(gnc:make-html-div/markup
"maybe-align-right company-tax-id" taxid))))
(if (and taxnr (not (string-null? taxnr)))
(gnc:html-table-append-row!
table (list (gnc:make-html-div/markup
"maybe-align-right company-tax-nr" taxnr))))
table))
(define (reg-renderer report-obj)