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 plongstaff at rogers.com
Fri Sep 11 09:49:18 EDT 2009


They are.  This will provide warnings if a) an object has a broken reference (before, it would silently use a NULL pointer for the referenced object), or b) somehow the order of loading things changes so that referenced objects are loaded after the objects that refer to them.

Phil




________________________________
From: Derek Atkins <warlord at MIT.EDU>
To: gnucash-devel at gnucash.org
Cc: gnucash-patches at gnucash.org
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 <plongstaff at code.gnucash.org> 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
      warlord at MIT.EDU                        PGP key available
_______________________________________________
gnucash-devel mailing list
gnucash-devel at gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


More information about the gnucash-devel mailing list