Pie chart reports
Phillip Shelton
shelton@usq.edu.au
Fri, 22 Jun 2001 10:33:29 +1000
> So, I gave myself a crash course in Scheme in order to read the report
code,
> and found:
>
> (set! combined
> (sort (filter (lambda (pair) (not (= 0.0 (car pair))))
> (traverse-accounts
> 1 topl-accounts))
> (lambda (a b) (> (car a) (car b)))))
>
> Fair enough, that excludes accounts whose balance is zero. I changed the
filter
> condition to:
>
> (sort (filter (lambda (pair) (< 0.0 (car pair)))
>
> However, this still didn't exclude the negative-balance account.
Should not that be,
(sort (filter (lambda (pair) (<= 0.0 (car pair)))
But I doubt that it would solve you immediate problem. It is just that you
have now gone and not excluded the zero balance accounts with you change.