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