To complete my previous reply, this came out of a bug where when an invoice is loaded, the posting transaction wasn't being loaded. Now, if an object has a reference to a transaction, and the transaction isn't loaded yet, it is loaded automatically. Other objects which are referred to are *not* automatically loaded, because they should all already have been loaded, but I added warning messages.
Phil ________________________________ From: Derek Atkins <[email protected]> To: [email protected] Cc: [email protected] Sent: Friday, September 11, 2009 9:40:55 AM Subject: Re: r18308 - gnucash/trunk/src/business/business-core/sql - If an object is loaded with a reference to an invoice, order, tax table or bill term which Phil Longstaff <[email protected]> writes: > Author: plongstaff > Date: 2009-09-10 22:09:08 -0400 (Thu, 10 Sep 2009) > New Revision: 18308 > Trac: http://svn.gnucash.org/trac/changeset/18308 > > Modified: > gnucash/trunk/src/business/business-core/sql/gnc-bill-term-sql.c > gnucash/trunk/src/business/business-core/sql/gnc-invoice-sql.c > gnucash/trunk/src/business/business-core/sql/gnc-order-sql.c > gnucash/trunk/src/business/business-core/sql/gnc-tax-table-sql.c > Log: > If an object is loaded with a reference to an invoice, order, tax table or > bill term which > has not been loaded yet, print a warning message into the trace file. The Tax Tables and Bill Terms should all be loaded at startup. -derek -- Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory Member, MIT Student Information Processing Board (SIPB) URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH [email protected] PGP key available _______________________________________________ gnucash-devel mailing list [email protected] https://lists.gnucash.org/mailman/listinfo/gnucash-devel _______________________________________________ gnucash-devel mailing list [email protected] https://lists.gnucash.org/mailman/listinfo/gnucash-devel
