Extra accounts in template-transactions

Mike Alexander mta at umich.edu
Fri Apr 20 17:27:10 EDT 2007


--On April 20, 2007 4:06:05 PM -0400 David Hampton 
<gnucash at love2code.net> wrote:

> On Fri, 2007-04-20 at 15:10 -0400, Mike Alexander wrote:
>
>> The parents of these seem to be the various ROOT accounts above.
>> Most  of these BANK accounts seem to be unreferenced, but some of
>> them are  referenced in the transactions later in the
>> template-transactions  section.
>>
>> I have no idea when these appeared in the file, but they seem like
>> they  might be a mistake.  I have 6 scheduled transactions in the
>> file, all  of them very simple ones that just pay a bill with a
>> fixed amount from  either a checking or credit card account.
>
> I believe I've fixed the bug that caused the extra accounts to be
> created.  That doesn't help with eliminating them though.

When did you fix it?  I'm running SVN version 15911 and it doesn't seem 
to be fixed there.  I deleted all the unreferenced accounts by hand and 
when I open the SX editor on the file it creates a new root account. 
The diff of the changes it made is below.  It didn't create a new BANK 
account, but I didn't actually change anything in the SX editor so it 
might under other circumstances.

@@ -1177079,12 +1177079,23 @@
 <gnc:template-transactions>
 <gnc:account version="2.0.0">
   <act:name/>
-  <act:id type="guid">6ca9ffd17e3d911b264bc69a7502c102</act:id>
+  <act:id type="guid">86df5f29f68b5842fbea05bba41b6b80</act:id>
   <act:type>ROOT</act:type>
   <act:commodity-scu>0</act:commodity-scu>
 </gnc:account>
 <gnc:account version="2.0.0">
   <act:name/>
+  <act:id type="guid">6ca9ffd17e3d911b264bc69a7502c102</act:id>
+  <act:type>ROOT</act:type>
+  <act:commodity>
+    <cmdty:space>template</cmdty:space>
+    <cmdty:id>template</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>1</act:commodity-scu>
+  <act:parent type="guid">86df5f29f68b5842fbea05bba41b6b80</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name/>
   <act:id type="guid">855383817fe136d02ad8b911d1b0fb97</act:id>
   <act:type>ROOT</act:type>
   <act:commodity>



More information about the gnucash-devel mailing list