Skip to content

Commit

Permalink
Rename option name from "Invoice number" to "Invoice Number"
Browse files Browse the repository at this point in the history
This ensures it matches all other invoice reports.
  • Loading branch information
christopherlam committed Jul 22, 2021
1 parent 2fccf30 commit 2606ddf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gnucash/report/reports/standard/receipt.scm
Expand Up @@ -41,7 +41,6 @@
(define generalpage gnc:pagename-general)
; option names
(define optname-report-title (N_ "Report title"))
(define optname-invoice-number (N_ "Invoice number"))
(define optname-template-file (N_ "Template file"))
(define optname-css-file (N_ "CSS stylesheet file"))
(define optname-heading-font (N_ "Heading font"))
Expand Down Expand Up @@ -73,7 +72,7 @@

(add-option
(gnc:make-invoice-option ; defined in gnucash/scm/business-options.scm
generalpage optname-invoice-number
generalpage gnc:optname-invoice-number
"a" "" (lambda () '()) #f))

;; Display options
Expand Down Expand Up @@ -164,7 +163,7 @@

; Get all the options
(let* ((document (gnc:make-html-document))
(opt-invoice (opt-value generalpage optname-invoice-number))
(opt-invoice (opt-value generalpage gnc:optname-invoice-number))
(opt-template-file (find-template
(opt-value displaypage optname-template-file)))
(opt-css-file (find-stylesheet
Expand Down
2 changes: 2 additions & 0 deletions libgnucash/app-utils/options.scm
Expand Up @@ -1832,6 +1832,8 @@ the option '~a'."))
("Links" #f "Transaction Links")
;; invoice.scm, renamed November 2018
("Individual Taxes" #f "Use Detailed Tax Summary")
;; receipt.scm, renamed July 2021
("Invoice number" #f "Invoice Number")
;; income-gst-statement.scm
("default format" #f "Default Format")
("Report format" #f "Report Format")
Expand Down

0 comments on commit 2606ddf

Please sign in to comment.