gnucash/src/register/ledger-core/split-register-layout.c
Derek Atkins
warlord@MIT.EDU
25 Nov 2001 17:40:42 -0500
linas@linas.org (Linas Vepstas) writes:
> Long, long ago, I had the plan to move the contents of
> split-register-layout.c to a config file.
> (Notice the very regular, even, repetitive nature of this file).
> I see that it hasn't happened yet ...=20
>
> Is this good? Is this bad? =20
I think the fact that it hasn't happened is probably bad.
Making the SplitRegister more configurable (either from
Scheme _or_ C) would be a Good Thing, IMHO.
> The reason I wanted to put this in a config file was to make it easy to
> configure gnucash to do new things. In particular, I wanted to be=20
> able to add a column to the register, and config it so that the column
> value came from some kvp value.
Indeed. I'd love to add an extra 'date' to the A/R and A/P entries
(actually, I'd like the extra date only on Posted Invoices, not on
Payments/Receipts). This would be the Due Date. And, of course, this
could/should be stored in the kvp. I didn't do it for precicely this
reason, I wasn't sure how without a lot of extra coding.
So, yes, having this extension flexibility would be a Good Thing.
> The germans have long yelled at me for this feature, they want to have
> some weird ID numbers as a column in the register. As long as the code
> is C, and static/compile-time, its hard to add this feature. =20
>
> -----------
> The need to modify the register in this way was *THE MAIN REASON*
> why scheme was added as an extension language. However, I think
> we lost sight of this: we wrote lots and lots of scheme code, but
> approximately 0% of it is devoted to making gnucash configurable.
Heh.
> (changing the color/width/labels on columns doesn't count as=20
> 'configuration'.)
Well, I would beg to differ. But I agree that configuration is much
more than just the color/width/labels ;)
> --linas
-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@MIT.EDU PGP key available