diff --git a/gnucash/report/reports/standard/budget.scm b/gnucash/report/reports/standard/budget.scm index 0345d456e7..b0eb31370b 100644 --- a/gnucash/report/reports/standard/budget.scm +++ b/gnucash/report/reports/standard/budget.scm @@ -34,6 +34,7 @@ (use-modules (gnucash engine)) (use-modules (srfi srfi-1)) +(use-modules (ice-9 match)) (gnc:module-load "gnucash/report" 0) (gnc:module-load "gnucash/gnome-utils" 0) ;for gnc-build-url @@ -51,6 +52,8 @@ (define optname-select-columns (N_ "Select Columns")) (define optname-show-budget (N_ "Show Budget")) (define opthelp-show-budget (N_ "Display a column for the budget values.")) +(define optname-show-notes (N_ "Show Budget Notes")) +(define opthelp-show-notes (N_ "Display a column for the budget notes.")) (define optname-show-actual (N_ "Show Actual")) (define opthelp-show-actual (N_ "Display a column for the actual values.")) (define optname-show-difference (N_ "Show Difference")) @@ -229,9 +232,15 @@ ;; columns to display (add-option - (gnc:make-simple-boolean-option + (gnc:make-complex-boolean-option gnc:pagename-display optname-show-budget - "s1" opthelp-show-budget #t)) + "s1" opthelp-show-budget #t #f + (lambda (x) + (set-option-enabled options gnc:pagename-display optname-show-notes x)))) + (add-option + (gnc:make-simple-boolean-option + gnc:pagename-display optname-show-notes + "s15" opthelp-show-budget #t)) (add-option (gnc:make-simple-boolean-option gnc:pagename-display optname-show-actual @@ -254,6 +263,27 @@ options)) +;; creates a footnotes collector. (make-footnote-collector) => coll +;; (coll elt) adds elt to store, returns html-text containing ref eg. [1] +;; (coll 'list) returns html-text containing