mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Always set budget option to default budget.
This commit is contained in:
parent
f5d8d508ee
commit
9d150b1ae7
@ -159,7 +159,10 @@
|
|||||||
(gnc-make-string-option section name key docstring color-str (GncOptionUIType-COLOR))))
|
(gnc-make-string-option section name key docstring color-str (GncOptionUIType-COLOR))))
|
||||||
(define-public (gnc:make-budget-option section name key docstring)
|
(define-public (gnc:make-budget-option section name key docstring)
|
||||||
(issue-deprecation-warning "gnc:make-budget-option is deprecated. Make and register the option in one command with gnc-register-color-option.")
|
(issue-deprecation-warning "gnc:make-budget-option is deprecated. Make and register the option in one command with gnc-register-color-option.")
|
||||||
(gnc-make-qofinstance-option section name key docstring #f (GncOptionUIType-BUDGET)))
|
(let ((option (gnc-make-qofinstance-option section name key docstring #f (GncOptionUIType-BUDGET))))
|
||||||
|
(gnc:option-set-value option
|
||||||
|
(gnc-budget-get-default (gnc-get-current-book)))
|
||||||
|
option))
|
||||||
(define-public (gnc:make-commodity-option section name key docstring default)
|
(define-public (gnc:make-commodity-option section name key docstring default)
|
||||||
(issue-deprecation-warning "gnc:make-commodity-option is deprecated. Make and register the option in one command with gnc-register-commodity-option.")
|
(issue-deprecation-warning "gnc:make-commodity-option is deprecated. Make and register the option in one command with gnc-register-commodity-option.")
|
||||||
(gnc-make-commodity-option section name key docstring default))
|
(gnc-make-commodity-option section name key docstring default))
|
||||||
|
Loading…
Reference in New Issue
Block a user