diff --git a/gnucash/report/trep-engine.scm b/gnucash/report/trep-engine.scm index 1504cfb2a7..a3d1eafd31 100644 --- a/gnucash/report/trep-engine.scm +++ b/gnucash/report/trep-engine.scm @@ -1734,7 +1734,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