CVS update: gnucash/src/engine

Derek Atkins warlord at MIT.EDU
Tue Jun 10 17:56:39 CDT 2003


ooh.. cool.

Then all we need to do is add an AccountGroup to QueryObject and then
have some function like AccountGroup* xaccGroupGetTopGroup(AccountGroup*)
and we can easily create a query on members of a particular account group
without having to enumerate all the sub-accounts.

My inital plan was to re-use the GUID match:

        split -> account -> group -> top-group -> guid :: matches_guid(xxx)

Unfortunately this wouldn't help searching for non-top-level
accountgroups..  I'd need to think more about how to set up a query
for:

        split -> account -> group :: is_subgroup_of(xxx)".

But this requires adding a new query predicate type, which I'd like to
avoid if possible.  OTOH, it would be useful for "open account and all
sub-accounts" if we could search for:

        split -> account -> guid :: match_guid(this_account) OR
        split -> account -> group :: is_subgroup_of(this_account)

Instead of pre-computing:

        split -> account -> guid :: match_guid(this_account, subaccounts ...)

Because if you add a new subaccount this fails to find it properly.
Note that this is also a problem in weeding out the Scheduled
Transaction Template Accounts from the normal account searches.

Ideas?

-derek

linas at linas.org (Linas Vepstas) writes:

> Date:	Tuesday June 10, 2003 @ 15:22
> Author:	linas
> 
> Update of /home/cvs/cvsroot/gnucash/src/engine
> In directory www.linas.org:/tmp/cvs-serv31342
> 
> Modified Files:
> 	Account.c Group.c GroupP.h gnc-book.c gnc-engine.c 
> Log Message:
> change AccountGroup to use gncObject for initialization, dirty flag, teardown.
> 
> _______________________________________________
> gnucash-patches mailing list
> gnucash-patches at lists.gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-patches

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


More information about the gnucash-devel mailing list