Skip to content

Commit

Permalink
[report-utilities.scm] use xaccAccountGetSplitSize
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Sep 9, 2024
1 parent 85225b6 commit 829cf34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnucash/report/report-utilities.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 829cf34

Please sign in to comment.