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.
This commit is contained in:
Christopher Lam 2018-04-11 08:31:24 +08:00
parent 4ba77f7b09
commit 044583d72f

View File

@ -630,7 +630,9 @@ tags within description, notes or memo. ")
(gnc-option-db-set-option-selectable-by-name (gnc-option-db-set-option-selectable-by-name
options pagename-sorting optname-show-subtotals-only options pagename-sorting optname-show-subtotals-only
(or (and prime-sortkey-subtotal-enabled prime-sortkey-subtotal-true) (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 (gnc-option-db-set-option-selectable-by-name
options pagename-sorting optname-show-informal-headers options pagename-sorting optname-show-informal-headers