On 15 Nov 1999 16:56:05 CST, the world broke into rejoicing as
Rob Browning <[EMAIL PROTECTED]> said:
>Dave Peticolas <[EMAIL PROTECTED]> writes:
>>
>> Why should you force all your transactions into leaf accounts? For
>> example, I have a 'gifts' account that has a sub-category of 'xmas',
>> since I like to know how much I've spent on xmas gifts specifically.
>> Of course, I buy other gifts, but rather than having a 'non-xmas' or
>> 'misc' account it makes perfect sense, at least to me, to put those
>> expenses in the non-leaf 'gifts'.
>
>OK. I slightly misunderstood Derek's request, but I agree with Dave
>here.
>
>However, I wouldn't be opposed to allowing this to be configurable as
>long as there aren't some more serious implications I'm overlooking.
>
>i.e.
> (gnc:restrict-transaction-parents-to 'leaf-accounts)
> (gnc:restrict-transaction-parents-to 'non-top-level-accounts)
>
>or something similar.
How about a "counterexample" as counterweight
I've got an account, Auto, which incurs costs, as well as subaccounts,
Repairs, and Fuel, that incur costs.
I would consider it unreasonable for transactions to be restricted to
leaf nodes.
I *could* go along with the notion that "top level" accounts, which
should be things like:
-- Assets
-- Liabilities
-- Incomes
-- Expenses
might indeed be restricted from having transactions.
It seems to me that it would be a Rather Better Idea if this were
controlled at the account level, where you would have the option of
declaring an account to be a "Roll-up Account" which would not be
permitted to incur transactions. "Roll-up" is the right term to use,
by the way.
*Un*fortunately, the structure _account (src/engine/AccountP.h) does
not have such a variable; now rears its ugly head the thought that
there may need to be some mutations of the basic data structures,
albeit not *nasty, nasty* ones, and we may have need to have a way to
support such. This is probably an argument in favor of an XML-based
data format; it might more readily survive data structure mutations
than a more binary-oriented form...
--
"Are [Linux users] lemmings collectively jumping off of the cliff of
reliable, well-engineered commercial software?" -- Matt Welsh
[EMAIL PROTECTED] <http://www.ntlug.org/~cbbrowne/lsf.html>
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]