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 738749 - Broken account template en_GB/uk-vat.gnucash-xea ?
Broken account template en_GB/uk-vat.gnucash-xea ?
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: General
2.6.4
Other Linux
: Normal normal
: ---
Assigned To: gnucash-general-maint
gnucash-general-maint
Depends on:
Blocks:
 
 
Reported: 2014-10-18 06:57 UTC by gnome
Modified: 2018-06-29 23:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix broken en_GB/uk-vat.gnucash-xea (3.09 KB, patch)
2014-10-20 16:31 UTC, gnome
reviewed Details | Review

Description gnome 2014-10-18 06:57:29 UTC
Kmymoney shares account templates with gnucash using a command line tool xea2kmt.

While trying to update gnucash accounts it turns out that the mentioned template is converted to an empty kmt file without any accounts. 

Gnucash account template files have a toplevel account of type="ROOT" and always the same id="1972cce2e2364f95b2b0bc014502661d". 
Accounts on the second level refers to this root account by the parent attribute an third level account refers to the second level account and so on.
In the mentioned file there is only one second level account "Computer Equipment" refering to the root account. All other accounts are *not* childs of ROOT.

   ROOT
      Computer Equipment
   all other accounts

Is this behavior intentional or is this a bug ?
Comment 1 gnome 2014-10-18 07:03:00 UTC
Taking a look at the previously imported account template at https://projects.kde.org/projects/extragear/office/kmymoney/repository/revisions/master/entry/kmymoney/templates/en_GB/uk-vat.kmt this looks like a bug in the gnucash account template introduced after the mentioned import.
Comment 2 Mike Evans 2014-10-18 09:34:43 UTC
Indeed it does appear to be a bug.

Note.
The parent of Computer Equipment is Capital Equipment which is a child of Assets, which in turn has no parent.  It should be a child of ROOT.

This was a user submitted template, added Sat Apr 21 21:26:33 2007 +0000

I added the ROOT part on 2011-11-28 11:37:38 -0500 but It seems I didn't finish the job by making the other parts into children of ROOT.

Please feel free to submit a patch to fix this bug.
Comment 3 gnome 2014-10-20 16:31:31 UTC
Created attachment 288965 [details] [review]
Fix broken en_GB/uk-vat.gnucash-xea
Comment 4 Mike Evans 2014-10-21 09:19:10 UTC
Comment on attachment 288965 [details] [review]
Fix broken en_GB/uk-vat.gnucash-xea

Tested in maint.  Looks fine to me.
Comment 5 Mike Evans 2014-12-29 12:32:56 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.

commit fcc91124c7429
Comment 6 John Ralls 2018-06-29 23:35:14 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=738749. Please update any external references or bookmarks.