> 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.

_______________________________________________
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel

Reply via email to