trep-engine.scm - Demote subtotals when hiding transactional data
Christopher Lam
christopher.lck at gmail.com
Sat Dec 6 11:09:34 EST 2025
> My approach is more hacking than programming. I'm running a standard
> GnuCash V5.13 (2025-11-19) install on Win11:
>
> 1. Why doesn't changing to (define def:primary-subtotal-style
> "normal-row") turn off primary-subtotal bold in the displayed report?
> https://github.com/Gnucash/gnucash/blob/stable/gnucash/report/trep-engine.scm#L138-L139
>
> Because the def:primary-subtotal-style being "primary-subheading" seems to
be responsible for setting the bgcolor only, and the bold line comes from
"total-label-cell" and "total-number-cell" as per *first-column* and
*data-columns* definitions. Best use ripgrep or equivalent to locate the
*primary-subheading* and *total-number-cell* style definitions, which
predates css. Unfortunately not everything in gnucash makes sense, only the
numerical data and reports are sound :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20251207/304e865e/attachment.htm>
More information about the gnucash-devel
mailing list