Bug 799075 - Saving display tab changes in Report Options does not work.

When altering a library report option change the default value, not
the value so that the option system recognizes user changes correctly.
This commit is contained in:
John Ralls
2023-09-05 16:42:48 -07:00
parent 4ffe1082c1
commit 4206300dce

View File

@@ -33,26 +33,26 @@
(define (reconcile-report-options-generator)
(let ((options (gnc:trep-options-generator)))
(GncOption-set-value
(GncOption-set-default-value
(gnc-lookup-option options "Sorting" "Primary Key") 'reconciled-status)
(GncOption-set-value
(GncOption-set-default-value
(gnc-lookup-option options "Sorting" "Secondary Key") 'date)
(GncOption-set-value
(GncOption-set-default-value
(gnc-lookup-option options "Sorting" "Secondary Subtotal for Date Key") 'none)
(GncOption-set-value
(GncOption-set-default-value
(gnc-lookup-option options gnc:pagename-general "Start Date")
(cons 'relative 'start-prev-quarter))
(GncOption-set-value
(GncOption-set-default-value
(gnc-lookup-option options gnc:pagename-general "End Date")
(cons 'relative 'today))
(GncOption-set-value
(GncOption-set-default-value
(gnc-lookup-option options gnc:pagename-general "Date Filter")
'reconciled)
(GncOption-set-value
(GncOption-set-default-value
(gnc-lookup-option options gnc:pagename-display "Reconciled Date") #t)
(GncOption-set-value
(GncOption-set-default-value
(gnc-lookup-option options gnc:pagename-display "Running Balance") #f)
(GncOption-set-value
(GncOption-set-default-value
(gnc-lookup-option options gnc:pagename-display "Memo") #f)
(GncOptionDBPtr-make-internal options gnc:pagename-display "Running Balance")
options))