From ebdab86ec1b17d7884bc6b9d79d3727581b396da Mon Sep 17 00:00:00 2001 From: flywire Date: Wed, 3 May 2023 11:40:29 +1000 Subject: [PATCH] Only show Subtotal Prefix with Transactions If `Show subtotals only (hide transactional data)` is selected then the `Total For` prefix should not be shown. --- gnucash/report/trep-engine.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnucash/report/trep-engine.scm b/gnucash/report/trep-engine.scm index 0479366f57..60d4823950 100644 --- a/gnucash/report/trep-engine.scm +++ b/gnucash/report/trep-engine.scm @@ -1671,7 +1671,10 @@ be excluded from periodic reporting.") (data-columns (car list-of-commodities)))) (loop "" (cdr list-of-commodities)))))) - (define (total-string str) (string-append (G_ "Total For ") str)) + (define (total-string str) + (if (opt-val pagename-sorting optname-show-subtotals-only) + str + (string-append (G_ "Total For ") str))) ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; renderers