r18431 - gnucash/trunk/src/backend/sql - Fix bug 591098 - when starting Gnucash, "Present" and all other collumns exept TOTAL are zero until you open the account

Phil Longstaff plongstaff at code.gnucash.org
Fri Nov 20 23:32:27 EST 2009


Author: plongstaff
Date: 2009-11-20 23:32:26 -0500 (Fri, 20 Nov 2009)
New Revision: 18431
Trac: http://svn.gnucash.org/trac/changeset/18431

Modified:
   gnucash/trunk/src/backend/sql/gnc-transaction-sql.c
Log:
Fix bug 591098 - when starting Gnucash, "Present" and all other collumns exept TOTAL are zero until you open the account
Fix bug 598618 -  does not calculate account balances correctly

Both of these are happening because not all transactions are being loaded at startup.  Bug 591098
happens because the account assumes it has all splits loaded, and looks for the first one after the
requested date to get the present balance.  The second happens because then the splits associated
with an invoice transaction are being loaded, the balance cannot be updated properly.

This change reverts back to loading all transactions on startup.  Once gnucash is a proper database
app, we can change back to loading transactions only when needed.




More information about the gnucash-patches mailing list