gnc:account-get-trans-type-splits-interval with an empty account list

Derek Atkins warlord at MIT.EDU
Thu Dec 3 12:00:01 EST 2009

Mike Alexander <mta at> writes:

> The problem with the balance sheet report when there are no trading
> accounts in the book was due to the fact that
> gnc:account-get-trans-type-splits-interval in report-utilities.scm
> returns splits from all accounts when it is given a null account
> list. I didn't change this since I didn't have the time to follow all
> the paths that lead to this function, but it seems to me that this is
> wrong.  It causes functions like
> gnc:accountlist-get-comm-balance-at-date to compute a balance for all
> accounts when given no accounts.  What do others think?  Is this the
> correct behavior?

This function appears to only be used in the balance sheet and equity
statement, so I think it's safe to decide what the right behavior should

>        Mike


       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-devel mailing list