r18455 - gnucash/trunk/src/report - Fix the bug described in comment 19 of bug 537476, balance sheet wrong without trading accounts.

Mike Alexander mta at code.gnucash.org
Tue Dec 1 00:15:04 EST 2009


Author: mta
Date: 2009-12-01 00:15:02 -0500 (Tue, 01 Dec 2009)
New Revision: 18455
Trac: http://svn.gnucash.org/trac/changeset/18455

Modified:
   gnucash/trunk/src/report/report-system/html-acct-table.scm
   gnucash/trunk/src/report/standard-reports/balance-sheet.scm
Log:
Fix the bug described in comment 19 of bug 537476, balance sheet wrong without trading accounts.  
The problems is that xaccQueryAddAccountMatch and xaccQueryAddAccountGUIDMatch
match all accounts rather than no accounts when given a null account list.  This means
that gnc:accountlist-get-comm-balance-at-date returns a balance for all accounts when
given no accounts.  This caused the balance sheet report to fail if there were no trading
accounts.  There is a similar problem with gnc:account-get-trans-type-splits-interval in 
gnc:html-acct-table-add-accounts! in html-acct-table.scm that is also fixed.




More information about the gnucash-patches mailing list