[GNC] Altering the defaults for printing invoices
Dave Hayes
dave at jetcafe.org
Mon Jan 4 15:07:27 EST 2021
In the normal user case, when printing an invoice, one clicks "Options"
in the toolbar and is presented with 4 tabs of choices before printing
one's invoice to send.
There has never (to my knowledge, and I've been using gnucash for years) been a
way to save these as defaults, causing most users to have to slog through 4
tabs of options and redo them for each invoice.
This might be especially painful if you use custom CSS like I do but you got
even more custom with it than I did.
On FreeBSD, I have a solution which I apply on each release (this is not for
the timid):
--- invoice.scm 2021-01-04 11:58:52.211210000 -0800
+++ realpath.scm 2021-01-04 11:56:56.833457000 -0800
@@ -34,6 +34,7 @@
(define (addif pred . data) (if pred data '()))
(define base-css "/* advanced users only */
+.invoice-title { font-size: 125%; font-weight: bold }
.div-align-right { float: right; }
.div-align-right .maybe-align-right { text-align: right }
.entries-table * { border-width: 1px; border-style:solid; border-collapse:
collapse} @@ -235,12 +236,12 @@
(gnc:register-inv-option
(gnc:make-simple-boolean-option
(N_ "Display Columns") (N_ "Discount")
- "k" (N_ "Display the entry's discount?") #t))
+ "k" (N_ "Display the entry's discount?") #f))
(gnc:register-inv-option
(gnc:make-simple-boolean-option
(N_ "Display Columns") (N_ "Taxable")
- "l" (N_ "Display the entry's taxable status?") #t))
+ "l" (N_ "Display the entry's taxable status?") #f))
(gnc:register-inv-option
(gnc:make-simple-boolean-option
@@ -341,7 +342,7 @@
(gnc:make-text-option
(N_ "Display") (N_ "Extra Notes")
"u" (N_ "Extra notes to put on the invoice.")
- (G_ "Thank you for your patronage!")))
+ (G_ "Thank you for the opportunity to assist you!")))
(gnc:register-inv-option
(gnc:make-multichoice-option
Naturally, since invoice.scm changes each release (and sometimes changes
pathnames), this has to be done on each upgrade of gnucash.
Given that background my question is this: are there ever any plans to change
gnucash's behavior so a default set of options are savable by a user?
Thanks in advance.
--
Dave Hayes - Consultant - LA CA, USA - dave at dream-tech.com
>>>> *The opinions expressed above are entirely my own* <<<<
A real secret is something which only one person knows.
More information about the gnucash-user
mailing list