error parsing
Geert Janssens
janssens-geert at telenet.be
Sun Mar 4 16:18:57 EST 2012
Op zondag 4 maart 2012 16:05:34 schreef Vaughn Family Farm, Bryant:
> So this transaction I would do nothing to?
>
> </gnc:account>
> <gnc:transaction version="2.0.0">
> <trn:id type="guid">15b860c25f2147632595a1ecf79cac9e</trn:id>
> <trn:currency>
> <cmdty:space>ISO4217</cmdty:space>
> <cmdty:id>USD</cmdty:id>
> </trn:currency>
> <trn:date-posted>
> <ts:date>2011-11-30 23:19:00 -0500</ts:date>
> </trn:date-posted>
>
Correct.
> And this transaction I would add to?
> BEFORE:
> <gnc:transaction version="2.0.0">
> <trn:id type="guid">dea827985a196c292e7861f01d83114b</trn:id>
> <trn:currency>
> <cmdty:space>ISO4217</cmdty:space>
> <cmdty:id>USD</cmdty:id>
> </trn:currency>
> <trn:num>995545</trn:num>
> <trn:date-posted>
> <ts:date>2012-02-04 00:00:00 -0500</ts:date>
> </trn:date-posted>
>
> AFTER
> </gnc:transaction>
> <gnc:transaction version="2.0.0">
> <trn:id type="guid">dea827985a196c292e7861f01d83114b</trn:id>
> <trn:currency>
> <cmdty:space>ISO4217</cmdty:space>
> <cmdty:id>USD</cmdty:id>
> </trn:currency>
> <trn:date-posted>
> <ts:date>2011-11-30 23:19:00 -0500</ts:date>
> </trn:date-posted>
> <trn:num>995545</trn:num>
> <trn:date-posted>
> <ts:date>2012-02-04 00:00:00 -0500</ts:date>
> </trn:date-posted>
>
No, this transaction shouldn't be changed either. There is a trn:num section
in between the trn:currency and the trn:date-posted, but that's ok. The
sequence of the blocks is not really relevant. What does matter is that there
should be exactly one trn:date-posted block within each gnc:transaction block.
When I wrote the example, I happened to use a transaction that didn't have a
transaction number set, hence there is no trn:num block in the example.
I'm sorry if that caused some additional confusion.
And for completeness let me add that the date specified in the trn:date-posted
block should be a date that Windows considers valid. That means more recent
than December 1969.
Geert
More information about the gnucash-user
mailing list