mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 18:25:11 -06:00
[app-utils] upgrade Tax/Tax Number option to all locales
Previously de_DE locale will add a *global* 'Tax/Tax Number' option. This is immediately translated. This change will upgrade it to be present in all locales, and can be queried by any report.
This commit is contained in:
parent
49372e76be
commit
3208879e64
@ -300,6 +300,8 @@
|
||||
(define gnc:*company-contact* (N_ "Company Contact Person"))
|
||||
(define gnc:*fancy-date-label* (N_ "Fancy Date Format"))
|
||||
(define gnc:*fancy-date-format* (N_ "custom"))
|
||||
(define gnc:*tax-label* (N_ "Tax"))
|
||||
(define gnc:*tax-nr-label* (N_ "Tax Number"))
|
||||
|
||||
(define (gnc:company-info book key)
|
||||
;; Access company info from key-value pairs for current book
|
||||
@ -328,6 +330,7 @@
|
||||
gnc:*option-name-currency-accounting* gnc:*option-name-book-currency*
|
||||
gnc:*option-name-default-gains-policy*
|
||||
gnc:*option-name-default-gain-loss-account*
|
||||
gnc:*tax-label* gnc:*tax-nr-label*
|
||||
gnc:*option-name-auto-readonly-days* gnc:*option-name-num-field-source*)
|
||||
|
||||
(define gnc:*option-section-budgeting* OPTION-SECTION-BUDGETING)
|
||||
|
@ -157,6 +157,12 @@
|
||||
gnc:*option-section-budgeting* gnc:*option-name-default-budget*
|
||||
"a" (N_ "Budget to be used when none has been otherwise specified.")))
|
||||
|
||||
;; Tax Tab
|
||||
(reg-option
|
||||
(gnc:make-string-option
|
||||
gnc:*tax-label* gnc:*tax-nr-label*
|
||||
"a" (N_ "The electronic tax number of your business") ""))
|
||||
|
||||
;; Counters Tab
|
||||
(for-each
|
||||
(lambda (vals)
|
||||
|
@ -49,10 +49,5 @@
|
||||
(export txf-asset-categories)
|
||||
(export txf-liab-eq-categories)
|
||||
|
||||
(define gnc:*tax-label* (N_ "Tax"))
|
||||
(define gnc:*tax-nr-label* (N_ "Tax Number"))
|
||||
|
||||
(export gnc:*tax-label* gnc:*tax-nr-label*)
|
||||
|
||||
(load-from-path "txf-de_DE")
|
||||
(load-from-path "txf-help-de_DE")
|
||||
|
@ -312,16 +312,3 @@ Fehlermeldungen + Dankschreiben an: stoll@bomhardt.de"))
|
||||
)
|
||||
)
|
||||
))
|
||||
|
||||
;;; Register global options in this book
|
||||
(define (book-options-generator options)
|
||||
(define (reg-option new-option)
|
||||
(gnc:register-option options new-option))
|
||||
|
||||
(reg-option
|
||||
(gnc:make-string-option
|
||||
gnc:*tax-label* gnc:*tax-nr-label*
|
||||
"a" (N_ "The electronic tax number of your business") ""))
|
||||
)
|
||||
|
||||
(gnc-register-kvp-option-generator QOF-ID-BOOK-SCM book-options-generator)
|
||||
|
Loading…
Reference in New Issue
Block a user