GNOME Bugzilla – Bug 738749
Broken account template en_GB/uk-vat.gnucash-xea ?
Last modified: 2018-06-29 23:35:14 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 ?
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.
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.
Created attachment 288965 [details] [review] Fix broken en_GB/uk-vat.gnucash-xea
Comment on attachment 288965 [details] [review] Fix broken en_GB/uk-vat.gnucash-xea Tested in maint. Looks fine to me.
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
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.