Scheduled transaction not getting enterred..

Mike Alexander mta at umich.edu
Wed Jan 25 23:44:53 EST 2006


--On January 25, 2006 9:32:58 AM -0800 Andrew Sackville-West 
<andrew at farwestbilliards.com> wrote:

> On Wed, 25 Jan 2006 09:49:38 -0500
> Roland Roberts <roland at astrofoto.org> wrote:
>
> I don't know if there is a how-to, but here's how you do it:
>
> 1) !!!!!!! MAKE A COPY OF YOUR FILE!!!!!!!! (is that emphatic enough?
> :)
>
> 2) Here is what a proper transaction looks like:
>
> <gnc:transaction version="2.0.0">
>   <trn:id type="guid">06bbe4905639c3952a701dbffa994a25</trn:id>
>   <trn:currency>
>     <cmdty:space>ISO4217</cmdty:space>
>     <cmdty:id>USD</cmdty:id>
>   </trn:currency>
>   <trn:num>7050</trn:num>
>   <trn:date-posted>
>     <ts:date>2005-02-09 21:00:00 -0800</ts:date>
>   </trn:date-posted>
>   <trn:date-entered>
>     <ts:date>2005-02-10 19:38:47 -0800</ts:date>
>   </trn:date-entered>
>
> [truncated for obvious reasons]
>
> 3) the pertinent lines are <trn:currency> ...</trn:currency>. The
> snippet you sent is missing this and that is what causes the error
> about common currency.
>
> 4) using the GUID's that print on your terminal, edit the file for
> every instance of that GUID and confirm that there is a curreny
> block.  I can't remember if you also need to follow the GUID's of the
> <gnc:slot>s that are part of the transaction, but I don't think so.
>
> 5) this could surely be scripted someway, but I leave that to you.
>

I've got a change in Scrub.c in version 1.8 that automates this process 
in the case where all the currency splits in a transaction are in the 
same currency.  I'm in the process of porting my patches to the current 
SVN HEAD and will submit them to bugzilla when I'm done.

-- 
Mike Alexander           mta at umich.edu
Ann Arbor, MI            PGP key ID: BEA343A6




More information about the gnucash-user mailing list