bill term linkage

Linas Vepstas linas at linas.org
Sun Oct 12 23:36:15 CDT 2003


On Sun, Oct 12, 2003 at 06:53:07PM -0400, Derek Atkins was heard to remark:
> linas at linas.org (Linas Vepstas) writes:
> 
> > Another question:
> > 
> > I'm making copies (yes, I remember out previous conversation) of 
> > customers for book closing. This requires copies of bill terms.
> > Should I just copy *all* bill terms (using the object for-each routine)
> > or should I copy only those that I can find by looking at what's 
> > in a customer?  I'm already doing both for completeness.. wondering
> > if I should ditch 'foreach' or not.
> 
> I still believe that you should NOT be copying customers (or vendors,
> or employees) across book closings, or if you do it should be an exact
> copy, not a 'gemini' copy.  

Its an exact copy, only the guid's are different.  The guid's are
different because every object must have a unique guid; it doesn't
make sense to me to have two distinct objects with the same guid.

> Similarly with the billterms and taxtables
> you dont need to copy them because the parent/child code is already
> doing the historical "copy and save" for you.

Does this mean that I should prune away the children on closing books?

--linas

-- 
pub  1024D/01045933 2001-02-01 Linas Vepstas (Labas!) <linas at linas.org>
PGP Key fingerprint = 8305 2521 6000 0B5E 8984  3F54 64A9 9A82 0104 5933


More information about the gnucash-devel mailing list