Feature suggestion: display account numbers in register and account selection popup

Florian Haas workflo at gmx.net
Wed Aug 24 08:32:16 EDT 2011


Hi everyone,

please allow me to make a humble feature suggestion. A bit of
background: in Austria where I live, most companies use an account
hierarchy scheme which is hierarchically numbered, typically in
4-digit numbers. The numbering scheme is nationally standardized. I
know a similar system exists in Germany, albeit with a set of industry
specific account hierarchies (some of them available as GnuCash
account hierarchy templates). I'm not sure about other European
countries.

Now, while GnuCash does allow for accounts to be assigned a number,
those numbers are not available to actually be selected in the
register when making an entry. That complicates matters for users
using a numbered accounting scheme -- specifically because, as the
account number identifies the account unequivocally, the account
hierarchy scheme does not enforce uniqueness among leaf account
names. In GnuCash, this problem can be worked around by referring to
accounts by their full name (as opposed to just the leaf account
names) -- but that's comparatively tedious, compared to identifying an
account by its number.

Some existing account hierarchies (in the de_DE locale) presently work
around this limitation rather crudely, by including the account number
as a prefix to the account name. Apart from that being a rather
inelegant redundancy, it also creates a suboptimal user experience:
GnuCash displays account names right-aligned in the register -- so for
long account names, even if the "only display leaf account names"
option is checked, the account number is often invisible.

Thus, my suggestion is to add an option to display account numbers in
the register and account selection dialog. Then, if said option is
checked, the account selection dropdown would display account numbers
and enable users to quickly select an account by typing 3-4 numeric
keys. (I don't know if the GTK/Glade widgets allow for dropdown
entries to be rendered as a 2-column table. If that were the case,
that would be the ideal option: display 2 columns, account number to
the left and left-aligned, account name to the right and
right-aligned.)

Going down the rabbit hole, it would of course make sense to
optionally include the account numbers in reports too -- but I believe
this is safe to defer until after the basic functionality exists.

Unfortunately, my own C skills are far too limited for me to be able
to provide a patch implementing this functionality. What I can humbly
offer are patches to the GConf schema and preferences dialog; those
are in the other messages in this thread. I'd also be happy to
volunteer to test the functionality if someone picks this up and
starts working on a fully-functional patch. And, obviously, I can
provide patches to de.po for i18n purposes.

Please let me know what you think. All feedback is much
appreciated. Thanks!

Cheers,
Florian

[PATCH 1/2] schema: add the show_account_numbers preference
[PATCH 2/2] UI: add the show_account_numbers option to the preferences dialog

 gnome-utils/glade/preferences.glade           |   26 +++++++++++++++++++++-----
 gnome/schemas/apps_gnucash_general.schemas.in |   18 ++++++++++++++++++
 2 files changed, 39 insertions(+), 5 deletions(-)


More information about the gnucash-devel mailing list