In addition to that the tax invoice uses a different stylesheet mechanism than the other printable reports.
Tax invoice reports have a field in which you can pass the path to a css file to style your invoice. All other (invoice) reports on the other hand use a dropdown list from which you can select a predefined style. Those predefined styles are managed via menu item Edit->Style Sheets. One of the predefined style sheets (or perhaps "style sheet engines") in that list is also CSS based and would again allow you to style the invoice reports (except for the tax invoice report in this case). Unfortunately there is no way in GnuCash directly to select a specific style sheet as the default for all reports. With the tax invoice report you can currently work around this limitation by copying taxinvoice.css to your GNC_DATA_DIR ($HOME/.local/share/gnucash on linux) and modify it to your taste. If that file exists GnuCash will prefer it over the default one found in <gnucash-install-dir>/share/guile/site/2.2/gnucash/reports/stylesheets . Regards, Geert Op zondag 2 januari 2022 10:06:58 CET schreef Adrien Monteleone: > Hmm.. This will be interesting. I don't see a way using Gmane with > Thunderbird that I can CC anyone. I get the option to 'reply' but that > doesn't properly go through Gmane, or I can 'Followup' which does, but > doesn't let me CC anyone. > > Anyway, I think the issue is one of the Stylesheet has to be set in the > report preferences. But the bigger issue is you can't set anything other > than the default stylesheet to be the default. So you have to create a > 'saved report' version of the invoice, then each time you want to print > one, you have to load that saved report, *then* choose the invoice to print. > > Ideally, you should be able to set a default invoice-stylesheet combo so > that 'printing' an invoice from ANY point in the UI will use that custom > default. Otherwise, "what's the point?" The user is left with a very > convoluted and non-obvious way to get invoices to print the way they > want them to with regularity. > > Regards, > Adrien > > On 1/1/22 4:08 PM, Shanti wrote: > > Hello, > > > > I'm trying to configure GNUCash so I can have nice invoices with it, and > > I used the "taxinvoice" report and I could configure it to my needs. > > Then, in the GNUCash preferences, business tab, I set the taxinvoice to > > be the default invoice report for prints. > > > > What I don't understand is how to apply default settings to the > > taxinvoice report generated when I click on the print button. Now, I get > > an unconfigured report. is there a way to specify which report > > configuration to use by default ? > > > > If it's not currently possible, can it be added in the code, where > > should I look to add this feature? > > > > I could trace it to : > > > > - function gnc_invoice_window_print_invoice : > > https://github.com/Gnucash/gnucash/blob/970e9af3423eb50b9823d264cf6685ccad > > 0b2973/gnucash/gnome/dialog-invoice.c#L805 > > > > - function > > gnc:invoice-report-createhttps://github.com/Gnucash/gnucash/blob/a85520de7 > > b222ac61fca2bf264143996bddc311b/gnucash/report/reports/reports.scm#L69 > > > > - function gnc:make-report-options > > https://github.com/Gnucash/gnucash/blob/a85520de7b222ac61fca2bf264143996bd > > dc311b/gnucash/report/report-core.scm#L417 _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information. ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.