mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[cash-flow] convert subaccounts to srfi-1
neater
This commit is contained in:
parent
b795773e1c
commit
9dd139f3ed
@ -157,7 +157,13 @@
|
|||||||
|
|
||||||
(doc (gnc:make-html-document))
|
(doc (gnc:make-html-document))
|
||||||
(table (gnc:make-html-table))
|
(table (gnc:make-html-table))
|
||||||
(txt (gnc:make-html-text)))
|
|
||||||
|
;;add subaccounts if requested
|
||||||
|
(accounts (append accounts
|
||||||
|
(filter (lambda (acc) (not (member acc accounts)))
|
||||||
|
(if show-subaccts?
|
||||||
|
(gnc:acccounts-get-all-subaccounts accounts)
|
||||||
|
'())))))
|
||||||
|
|
||||||
(gnc:html-document-set-title!
|
(gnc:html-document-set-title!
|
||||||
doc (string-append
|
doc (string-append
|
||||||
@ -166,17 +172,6 @@
|
|||||||
(format #f (_ "~a to ~a")
|
(format #f (_ "~a to ~a")
|
||||||
(qof-print-date from-date-t64) (qof-print-date to-date-t64))))
|
(qof-print-date from-date-t64) (qof-print-date to-date-t64))))
|
||||||
|
|
||||||
|
|
||||||
;; add subaccounts if requested
|
|
||||||
(if show-subaccts?
|
|
||||||
(let ((sub-accounts (gnc:acccounts-get-all-subaccounts accounts)))
|
|
||||||
(for-each
|
|
||||||
(lambda (sub-account)
|
|
||||||
(if (not (member sub-account accounts))
|
|
||||||
(set! accounts (cons sub-account accounts))))
|
|
||||||
sub-accounts)))
|
|
||||||
|
|
||||||
|
|
||||||
(if (not (null? accounts))
|
(if (not (null? accounts))
|
||||||
|
|
||||||
(let* ((tree-depth (if (equal? display-depth 'all)
|
(let* ((tree-depth (if (equal? display-depth 'all)
|
||||||
|
Loading…
Reference in New Issue
Block a user