I've been wrestling with this too, specifically with regard to invoices. This is a rather lengthy comment. I hope it is useful. Also, if some of this is inaccurate, which is likely, please let me know.
I've looked at the wiki and sifted through the code trying to understand how reports work. There appear to be two approaches. One uses scheme to wrap html around the report variables. These report files live in gnucash/report/reports/standard. Each has at least 3 sections, one to define the report, it's location in the menu and a guid identifier, one for the options menu and one to render the report. A report file can contain several report definitions that may share the same render section. My opinion is that these files are quite opaque and very fragile. The other and apparently newer approach has a report file that contains the same report and option sections as above, but preprocesses a html document with embedded scheme tags and a companion css file to generate scheme for the render section. The template and css files live in gnucash/report/reports/support. At this point, only 3 reports have been converted/rewritten using this approach. Only one is for invoices. This second approach is discussed in the eguile section of the wiki but seems out of sync with the implementation. A better explanation is in the source of the preprocessor. It lives at gnucash/report/eguile.scm. The report for printing invoices is chosen at Edit->preferences- >business->Report for printing. That is a glade screen and is hardwired to the guids of 4 specific reports, Printable, Fancy, Easy and Tax. Only the latter uses the equile preprocessor. The first 3 are packaged in a single file, invoice.scm. At this point, I plan to modify the tax invoice to meet my needs. This seems to be the only way the Print Invoice button on the View Invoice screen will generate my custom invoice. On Mon, 2023-01-02 at 17:32 -0700, Simon Roberts wrote: > Still working on the invoice mechanism... > > Is there any control over the fields displayed, auxiliary text, and > perhaps > the position of fields? > > When I looked up how to change the appearance of the invoice, the > docs only > seem to talk about adding images. > > In most cases I don't need "net price", "tax" or "total price" (I > almost > invariably bill a single "item" on a single invoice). Similarly the > "Action", "Quantity", "Unit price", "discount" and "taxable" fields > are > generally irrelevant for me. > On the other hand it would be nice to be able to include the Job > description. > > Thanks again, > Cheers, > Simon > _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.