Phil Longstaff <[EMAIL PROTECTED]> writes:

[snip]
> Once lot->splits == NULL, there are no splits, so unless there is some
> other way that the payment might be tied in, it would be safe to
> replace "lot->account = NULL" with "qof_instance_set_destroying(lot,
> TRUE)".

No, I do not think it would be safe to destroy the lot from under the
invoice, at lease without auditing all uses of the API.

> Phil

-derek

PS: I'll just note that this is why I keep saying that the DB backend
is just a data store; putting in table requirements like this just
causes problems for GnuCash and just makes everyone's life more
difficult.

-- 
       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

Reply via email to