[report-utilities.scm] use xaccAccountGetSplitSize

This commit is contained in:
Christopher Lam 2024-09-09 23:24:04 +08:00
parent 85225b6902
commit 829cf34074

View File

@ -666,7 +666,7 @@
;; function to count the total number of splits to be iterated
(define (gnc:accounts-count-splits accounts)
(fold (lambda (a b) (+ b (length (xaccAccountGetSplitList a)))) 0 accounts))
(fold (lambda (a b) (+ b (xaccAccountGetSplitsSize a))) 0 accounts))
;; Sums up any splits of a certain type affecting a set of accounts.
;; the type is an alist '((str "match me") (cased #f) (regexp #f))