[invoice.scm] Use full header for initial screen

instead of a single-line error line
This commit is contained in:
Christopher Lam
2020-10-01 23:49:09 +08:00
parent 6eb2e36c2d
commit 23de958872

View File

@@ -769,9 +769,13 @@ for styling the invoice. Please see the exported report for the CSS class names.
(custom-title (opt-val gnc:pagename-general "Custom Title"))) (custom-title (opt-val gnc:pagename-general "Custom Title")))
(if (null? invoice) (if (null? invoice)
(gnc:html-document-add-object! document
(gnc:make-html-text (gnc:html-document-add-object!
(G_ "No valid invoice selected. Click on the Options button and select the invoice to use."))) document
(gnc:html-make-generic-warning
(G_ "Invoice") (gnc:report-id report-obj) ""
(G_ "No valid invoice selected. Click on the Options button and select the invoice to use.")))
(let* ((book (gncInvoiceGetBook invoice)) (let* ((book (gncInvoiceGetBook invoice))
(owner (gncInvoiceGetOwner invoice)) (owner (gncInvoiceGetOwner invoice))
(type (gncInvoiceGetType invoice)) (type (gncInvoiceGetType invoice))