From 044583d72f407f17f0949c377a763ee2fa96d47e Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Wed, 11 Apr 2018 08:31:24 +0800 Subject: [PATCH] Bug 795064 - Enable subtotal-only if either sortkeys are dates This will allow 'show subtotals only' if sortkeys are date-types. This allows, for example, prime-sortkey=date, yearly. sec-sortkey=date, monthly. --- gnucash/report/standard-reports/transaction.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnucash/report/standard-reports/transaction.scm b/gnucash/report/standard-reports/transaction.scm index cb2dbc3a85..6dbb8945a7 100644 --- a/gnucash/report/standard-reports/transaction.scm +++ b/gnucash/report/standard-reports/transaction.scm @@ -630,7 +630,9 @@ tags within description, notes or memo. ") (gnc-option-db-set-option-selectable-by-name options pagename-sorting optname-show-subtotals-only (or (and prime-sortkey-subtotal-enabled prime-sortkey-subtotal-true) - (and sec-sortkey-subtotal-enabled sec-sortkey-subtotal-true))) + (and sec-sortkey-subtotal-enabled sec-sortkey-subtotal-true) + prime-date-sortingtype-enabled + sec-date-sortingtype-enabled)) (gnc-option-db-set-option-selectable-by-name options pagename-sorting optname-show-informal-headers