Only show Subtotal Prefix with Transactions

If `Show subtotals only (hide transactional data)` is selected then the `Total For` prefix should not be shown.
This commit is contained in:
flywire 2023-05-03 11:40:29 +10:00 committed by GitHub
parent 43eb36c311
commit ebdab86ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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