Skip to content

Commit

Permalink
[invoice] add toggle for invoice title
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Aug 7, 2018
1 parent f1ff608 commit 900cd36
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions gnucash/report/business-reports/invoice.scm
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,11 @@ for styling the invoice. Please see the exported report for the CSS class names.
(gnc:register-inv-option (gnc:make-internal-option "Display" "My Company" #f))
(gnc:register-inv-option (gnc:make-internal-option "Display" "My Company ID" #f))

(gnc:register-inv-option
(gnc:make-simple-boolean-option
(N_ "Display") (N_ "Title")
"a" (N_ "Display invoice title and invoice ID?") #t))

(gnc:register-inv-option
(gnc:make-simple-boolean-option
(N_ "Display") (N_ "Due Date")
Expand Down Expand Up @@ -834,10 +839,11 @@ for styling the invoice. Please see the exported report for the CSS class names.

(let ((main-table (gnc:make-html-table)))

(gnc:html-table-append-row! main-table
(gnc:make-html-table-cell/size
1 2 (gnc:make-html-div/markup
"invoice-title" invoice-title)))
(if (opt-val "Display" "Title")
(gnc:html-table-append-row! main-table
(gnc:make-html-table-cell/size
1 2 (gnc:make-html-div/markup
"invoice-title" invoice-title))))

(gnc:html-table-append-row! main-table
(list (layout-lookup "Row 1 Left")
Expand Down

0 comments on commit 900cd36

Please sign in to comment.