From 7a662272b31555d010df32f2d4553fec07f3fa5f Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Fri, 20 Sep 2019 10:39:33 +0800 Subject: [PATCH] [invoice] render tax/tax number into 'our-details' section --- gnucash/report/business-reports/invoice.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnucash/report/business-reports/invoice.scm b/gnucash/report/business-reports/invoice.scm index 3bfe1a21b2..af4e29fb47 100644 --- a/gnucash/report/business-reports/invoice.scm +++ b/gnucash/report/business-reports/invoice.scm @@ -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)