After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 573663 - Accounts have the wrong sort order for most european countries
Accounts have the wrong sort order for most european countries
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: General
unspecified
Other All
: Normal minor
: ---
Assigned To: gnucash-general-maint
gnucash-general-maint
Depends on:
Blocks: 570303
 
 
Reported: 2009-03-01 18:50 UTC by Frank H. Ellenberger
Modified: 2018-06-29 22:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Frank H. Ellenberger 2009-03-01 18:50:06 UTC
The following is derived from Bug 421766 – support "Passive" account type (able to contain both Liability and Equity accounts), especial Comment 5. In that bug might be also some additional useful information.

If you look at http://en.wikipedia.org/wiki/Balance_sheet and click on other european languages, you can obey, that most have equity (capital social = long term) before liability (debit = short term).

The general sort order of accounts there is: long term before short term. 

But it is not language specific, but country specific. E. g. Switzerland has short term first, while France, Germany and Italy use long term first.

Affected are the sort orders in the chart of accounts and in most reports.

Preferable there would be a country specific default setting (*), but a user preference or file specific setting should be enough on the first run.

(*): Is there a way, to get the info from the translators, e.g. a translatable string: "l"/"1" for longterm first, "s"/"0" for short term first?
Comment 1 Phil Longstaff 2009-06-18 20:38:13 UTC
Would this be per set of books i.e. anyone who opened file aaa.gnc would have "European" order, or would this be per user, so any file opened by user Abc would have European order?
Comment 2 Frank H. Ellenberger 2009-07-16 03:46:06 UTC
I think, it should be per file. Imagine you are the owner of MyCompany-CH and MyCompany-DE. The authorities of this countries wish to see their books in different sort orders.

But I would suggest a list of known country specific default values derived form the wiki pages:
CH:short [term first]
DE:long
FR:long
IT:long
US:short [for compatibility reasons also the default value for countries with unknown sort order]
Comment 3 John Ralls 2013-12-14 19:45:15 UTC
(In reply to comment #0)

> If you look at http://en.wikipedia.org/wiki/Balance_sheet and click on other
> european languages, you can obey, that most have equity (capital social = long
> term) before liability (debit = short term).

I see no indication on any of those samples that the length of the account name has anything to do with sorting.

The best way to sort accounts in the Accounts page is to assign account codes in the order that you want them to appear and to sort on those codes, although there are countries which specify the account codes as well; does the sort order correspond to the codes in all of those cases? We might need to introduce a "sort order" property to the Account class if there are cases where there's a mandatory code that doesn't order the CoA correctly.
Comment 4 Frank H. Ellenberger 2013-12-14 20:07:14 UTC
Not the lenght of the string but the lenght in the timeline.
Comment 5 John Ralls 2013-12-14 20:19:56 UTC
Ah, you mean as in how soon a debt is due? I don't see any way to do that without account codes or a sort order field.
Comment 6 Frank H. Ellenberger 2013-12-14 20:52:07 UTC
Yes, the will do it this way, but she can not change the order between equity and liability which currently for many countries I know is wrong. But:

We have in the report "Balance Sheet" the option "General->Use standard US layout".
This should become a property of the book 
with a country specific default value stored in a table or like the ISO currencies. 
Then it should also be used by the chart of accounts and all other balance similar presentations.
Comment 7 John Ralls 2013-12-14 22:57:00 UTC
(In reply to comment #6)
> Yes, the will do it this way, but she can not change the order between equity
> and liability which currently for many countries I know is wrong.

Why not?

> But:
> 
> We have in the report "Balance Sheet" the option "General->Use standard US
> layout".
> This should become a property of the book 
> with a country specific default value stored in a table or like the ISO
> currencies. 
> Then it should also be used by the chart of accounts and all other balance
> similar presentations.

Just make a custom report called "Non-US Balance Sheet" and save it. Then you can use it whenever you like.

OTOH, we could easily check the locale and if it isn't en_US flip the default on that one option.
Comment 8 John Ralls 2018-06-29 22:18:58 UTC
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=573663. Please continue processing the bug there and please update any external references or bookmarks.