Any Interest in Configurable Imbalance name

Pelton, Brian bpelton at jgboswell.com
Fri Jan 11 11:20:19 EST 2008


I'm looking at Account.c at the method gnc_account_lookup_by_name.

It is recursive.  So, that must be why moving it under Suspense works.

--Brian

-----Original Message-----
From: Pelton, Brian 
Sent: Friday, January 11, 2008 8:15 AM
To: 'Derek Atkins'
Cc: Andrew Sackville-West; gnucash-user at gnucash.org;
gnucash-user at lists.gnucash.org
Subject: RE: Any Interest in Configurable Imbalance name

Yes, I did verify.

Putting Imbalance under another account was suggested by someone on the
ML.

But on his suggestion I tried it and it works for me.

Since you ask, I did some more checking, here are my exact steps:



1) Create new Gnu File with default account structure
2) Enter an imbalanced transaction in Cash Account
3) Verified that Imbalance-USD is created at top level
4) Create Suspense account at top level
5) Edit Imbalance-USD and make it child of Suspense
6) Enter an imbalanced transaction in Cash Account
7) Verified that there is not an Imbalance-USD at top level
8) Verified that there are two transactions in Suspense:Imbalance-USD
9) Save and Close Gnu Cash
10) Open Gnu Cash
11) Enter an imbalanced transaction in Cash Account
12) Verified that there is not an Imbalance-USD at top level
13) Verified that there are three transactions in Suspense:Imbalance-USD
14) Enter an imbalance transaction in Checking Account
15) Verified that there is not an Imbalance-USD at top level
16) Verified that there are four transactions in Suspense:Imbalance-USD




-----Original Message-----
From: Derek Atkins [mailto:warlord at MIT.EDU] 
Sent: Friday, January 11, 2008 7:35 AM
To: Pelton, Brian
Cc: Andrew Sackville-West; gnucash-user at gnucash.org;
gnucash-user at lists.gnucash.org
Subject: Re: Any Interest in Configurable Imbalance name

"Pelton, Brian" <bpelton at jgboswell.com> writes:

> It is probably for the best.  I found the best solution for me was to
> make the imbalance account a child of my suspense account.  Its hidden
> away unless I need / want to look at it.

I'm not sure how that would work..  If it wanted to re-use the account
it would look for Imbalance-<XXX> in the top-level.  I'm PRETTY sure
that it doesn't look for the account by GUID, so if you move it
I would expect that it would just get re-created next time it's needed.
Have you actually tested this?  Does it actually work with the
Imbalance account moved like that?

> --Brian

> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

-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


More information about the gnucash-user mailing list