Skip to content

Commit

Permalink
[invoice] deprecate easy/fancy-invoice creation hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Aug 11, 2019
1 parent 55e196a commit 0c3f460
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gnucash/report/business-reports/invoice.scm
Expand Up @@ -930,13 +930,17 @@ for styling the invoice. Please see the exported report for the CSS class names.
'in-menu? #t)

(define (gnc:easy-invoice-report-create-internal invoice)
(issue-deprecation-warning
"gnc:easy-invoice-report-create-internal is unused")
(let* ((options (gnc:make-report-options easy-invoice-guid))
(invoice-op (gnc:lookup-option options gnc:pagename-general gnc:optname-invoice-number)))
(gnc:option-set-value invoice-op invoice)
(gnc:make-report easy-invoice-guid options)))
(export gnc:easy-invoice-report-create-internal)

(define (gnc:fancy-invoice-report-create-internal invoice)
(issue-deprecation-warning
"gnc:fancy-invoice-report-create-internal is unused")
(let* ((options (gnc:make-report-options fancy-invoice-guid))
(invoice-op (gnc:lookup-option options gnc:pagename-general gnc:optname-invoice-number)))
(gnc:option-set-value invoice-op invoice)
Expand Down

0 comments on commit 0c3f460

Please sign in to comment.