From 45cccc79f12608aba6bf5b2bb978acc9cf558e18 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 ac0768d4ab..f2cc83c483 100644 --- a/gnucash/report/trep-engine.scm +++ b/gnucash/report/trep-engine.scm @@ -1762,7 +1762,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