mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[modularise] (gnucash reports)
This commit is contained in:
parent
ffbd09089c
commit
7256e0d7e6
@ -31,6 +31,7 @@
|
||||
(use-modules (gnucash core-utils))
|
||||
(use-modules (gnucash app-utils))
|
||||
(use-modules (gnucash report))
|
||||
(use-modules (gnucash gnome-utils))
|
||||
(use-modules (srfi srfi-9))
|
||||
|
||||
(define optname-to-date (N_ "To"))
|
||||
|
@ -33,6 +33,9 @@
|
||||
(use-modules (gnucash engine))
|
||||
(use-modules (gnucash report))
|
||||
(use-modules (gnucash utilities))
|
||||
(use-modules (gnucash reports standard register))
|
||||
(use-modules (gnucash reports standard new-aging))
|
||||
(use-modules (gnucash reports standard new-owner-report))
|
||||
|
||||
(export gnc:register-report-create)
|
||||
(export gnc:invoice-report-create)
|
||||
@ -41,20 +44,12 @@
|
||||
(export gnc:owner-report-create)
|
||||
(export gnc:owner-report-create-with-enddate)
|
||||
|
||||
(define report-dirs (list
|
||||
(let ((loc-spec (if (string-prefix? "de_DE" (gnc-locale-name)) 'de_DE 'us)))
|
||||
(report-module-loader
|
||||
(list
|
||||
'(gnucash reports standard) ; prefix for standard reports included in gnucash
|
||||
'(gnucash reports example) ; rexample for example reports included in gnucash
|
||||
))
|
||||
|
||||
; Determine which locale-specific prefix to add to the list above
|
||||
; and then load all reports found in the given prefixes
|
||||
(let* ((loc (gnc-locale-name))
|
||||
(loc-spec (if (string-prefix? "de_DE" loc) 'de_DE 'us))
|
||||
(all-dirs (append report-dirs
|
||||
`((gnucash reports locale-specific ,loc-spec)))))
|
||||
(report-module-loader all-dirs))
|
||||
|
||||
(use-modules (gnucash engine))
|
||||
`(gnucash reports locale-specific ,loc-spec))))
|
||||
|
||||
(define (gnc:register-report-create account split query journal? ledger-type?
|
||||
double? title debit-string credit-string)
|
||||
@ -83,10 +78,7 @@
|
||||
0
|
||||
))
|
||||
|
||||
(use-modules (gnucash reports standard new-aging))
|
||||
(define gnc:payables-report-create payables-report-create-internal)
|
||||
(define gnc:receivables-report-create receivables-report-create-internal)
|
||||
|
||||
(use-modules (gnucash reports standard new-owner-report))
|
||||
(define gnc:owner-report-create owner-report-create)
|
||||
(define gnc:owner-report-create-with-enddate owner-report-create-with-enddate)
|
||||
|
@ -34,7 +34,7 @@ set(GUILE_DEPENDS
|
||||
scm-core-utils
|
||||
scm-test-report
|
||||
scm-reports
|
||||
scm-reports-standard-with-exposed-generator-links
|
||||
scm-reports-standard-with-exposed-generator
|
||||
scm-report-stylesheets
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user