Bug #584819 - Company name is not shown by default on some reports

Patch by Chris Dennis

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22010 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2012-02-12 18:43:13 +00:00
parent 2d4c0ed2e7
commit a63e86c733
7 changed files with 22 additions and 25 deletions

View File

@ -309,9 +309,16 @@
(define gnc:*company-email* (N_ "Company Email Address")) (define gnc:*company-email* (N_ "Company Email Address"))
(define gnc:*company-contact* (N_ "Company Contact Person")) (define gnc:*company-contact* (N_ "Company Contact Person"))
(export gnc:*business-label* gnc:*company-name* gnc:*company-addy* gnc:*company-id* (define (gnc:company-info key)
gnc:*company-phone* gnc:*company-fax* gnc:*company-url* ;; Access company info from key-value pairs for current book
gnc:*company-email* gnc:*company-contact*) (kvp-frame-get-slot-path-gslist
(qof-book-get-slots (gnc-get-current-book))
(append gnc:*kvp-option-path* (list gnc:*business-label* key))))
(export gnc:*business-label* gnc:*company-name* gnc:*company-addy*
gnc:*company-id* gnc:*company-phone* gnc:*company-fax*
gnc:*company-url* gnc:*company-email* gnc:*company-contact*
gnc:company-info)
(define gnc:*option-section-accounts* OPTION-SECTION-ACCOUNTS) (define gnc:*option-section-accounts* OPTION-SECTION-ACCOUNTS)
(define gnc:*option-name-trading-accounts* OPTION-NAME-TRADING-ACCOUNTS) (define gnc:*option-name-trading-accounts* OPTION-NAME-TRADING-ACCOUNTS)

View File

@ -65,6 +65,7 @@
(define-module (gnucash report standard-reports balance-sheet)) (define-module (gnucash report standard-reports balance-sheet))
(use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing. (use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing.
(use-modules (gnucash gnc-module)) (use-modules (gnucash gnc-module))
(use-modules (gnucash app-utils))
(gnc:module-load "gnucash/report/report-system" 0) (gnc:module-load "gnucash/report/report-system" 0)
@ -157,10 +158,7 @@
(add-option (add-option
(gnc:make-string-option (gnc:make-string-option
gnc:pagename-general optname-party-name gnc:pagename-general optname-party-name
"b" opthelp-party-name "")) "b" opthelp-party-name (gnc:company-info gnc:*company-name*)))
;; this should default to company name in (gnc-get-current-book)
;; does anyone know the function to get the company name??
;; (GnuCash is *so* well documented... sigh)
;; date at which to report balance ;; date at which to report balance
(gnc:options-add-report-date! (gnc:options-add-report-date!

View File

@ -31,6 +31,7 @@
(define-module (gnucash report standard-reports budget-balance-sheet)) (define-module (gnucash report standard-reports budget-balance-sheet))
(use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing. (use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing.
(use-modules (gnucash gnc-module)) (use-modules (gnucash gnc-module))
(use-modules (gnucash app-utils))
(gnc:module-load "gnucash/report/report-system" 0) (gnc:module-load "gnucash/report/report-system" 0)
@ -125,10 +126,7 @@
(add-option (add-option
(gnc:make-string-option (gnc:make-string-option
gnc:pagename-general optname-party-name gnc:pagename-general optname-party-name
"b" opthelp-party-name "")) "b" opthelp-party-name (gnc:company-info gnc:*company-name*)))
;; this should default to company name in (gnc-get-current-book)
;; does anyone know the function to get the company name??
;; (GnuCash is *so* well documented... sigh)
(add-option (add-option
(gnc:make-simple-boolean-option (gnc:make-simple-boolean-option

View File

@ -44,6 +44,7 @@
(use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing. (use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing.
(use-modules (gnucash printf)) (use-modules (gnucash printf))
(use-modules (gnucash gnc-module)) (use-modules (gnucash gnc-module))
(use-modules (gnucash app-utils))
(gnc:module-load "gnucash/report/report-system" 0) (gnc:module-load "gnucash/report/report-system" 0)
@ -146,10 +147,7 @@
(add-option (add-option
(gnc:make-string-option (gnc:make-string-option
gnc:pagename-general optname-party-name gnc:pagename-general optname-party-name
"b" opthelp-party-name "")) "b" opthelp-party-name (gnc:company-info gnc:*company-name*)))
;; this should default to company name in (gnc-get-current-book)
;; does anyone know the function to get the company name??
;; (GnuCash is *so* well documented... sigh)
(add-option (add-option
(gnc:make-budget-option (gnc:make-budget-option

View File

@ -48,6 +48,7 @@
(define-module (gnucash report standard-reports equity-statement)) (define-module (gnucash report standard-reports equity-statement))
(use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing. (use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing.
(use-modules (gnucash gnc-module)) (use-modules (gnucash gnc-module))
(use-modules (gnucash app-utils))
(use-modules (gnucash printf)) (use-modules (gnucash printf))
@ -110,10 +111,7 @@
(add-option (add-option
(gnc:make-string-option (gnc:make-string-option
(N_ "General") optname-party-name (N_ "General") optname-party-name
"b" opthelp-party-name "")) "b" opthelp-party-name (gnc:company-info gnc:*company-name*)))
;; this should default to company name in (gnc-get-current-book)
;; does anyone know the function to get the company name??
;; (GnuCash is *so* well documented... sigh)
;; date at which to report balance ;; date at which to report balance
(gnc:options-add-date-interval! (gnc:options-add-date-interval!

View File

@ -45,6 +45,7 @@
(use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing. (use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing.
(use-modules (gnucash printf)) (use-modules (gnucash printf))
(use-modules (gnucash gnc-module)) (use-modules (gnucash gnc-module))
(use-modules (gnucash app-utils))
(gnc:module-load "gnucash/report/report-system" 0) (gnc:module-load "gnucash/report/report-system" 0)
@ -150,10 +151,7 @@
(add-option (add-option
(gnc:make-string-option (gnc:make-string-option
gnc:pagename-general optname-party-name gnc:pagename-general optname-party-name
"b" opthelp-party-name "")) "b" opthelp-party-name (gnc:company-info gnc:*company-name*)))
;; this should default to company name in (gnc-get-current-book)
;; does anyone know the function to get the company name??
;; (GnuCash is *so* well documented... sigh)
;; period over which to report income ;; period over which to report income
(gnc:options-add-date-interval! (gnc:options-add-date-interval!

View File

@ -54,6 +54,7 @@
(use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing. (use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing.
(use-modules (gnucash printf)) (use-modules (gnucash printf))
(use-modules (gnucash gnc-module)) (use-modules (gnucash gnc-module))
(use-modules (gnucash app-utils))
(gnc:module-load "gnucash/report/report-system" 0) (gnc:module-load "gnucash/report/report-system" 0)
@ -148,8 +149,7 @@
(add-option (add-option
(gnc:make-string-option (gnc:make-string-option
(N_ "General") optname-party-name (N_ "General") optname-party-name
"b" opthelp-party-name "")) "b" opthelp-party-name (gnc:company-info gnc:*company-name*)))
;; this should default to company name in (gnc-get-current-book)
;; the period over which to collect adjusting/closing entries and ;; the period over which to collect adjusting/closing entries and
;; date at which to report the balance ;; date at which to report the balance