>>>>> Michael Toomim <[email protected]> writes:

> Sure, I gave examples at the beginning of this thread. I want to get a
> transaction out, but the csv and register commands will only give me
> postings.

> Here's a transaction:

> 2014-1-1 sold bitcoin
> Assets:bitcoin 4 btc @ $250
> Assets:cash -$1,000

> CSV export will currently give you:

> "2014/01/01","","sold bitcoin","Assets:bitcoin","btc","4","",""
> "2014/01/01","","sold bitcoin","Assets:cash","$","-1000","",""

So, you can do this:

    ledger --prepend-format '"%(xact.id)",' csv

And now you'll be able to determine related postings by grouping according to
those with the same transaction id.  This should be trivial in whatever
scripting language you prefer.

> At the beginning of this thread I gave details on everything I tried to get
> this information out of Ledger.

Sorry, I'm a bit swamped at the moment to address this problem in the detail
it deserves.  Hopefully we can get you on the right place without too much
difficulty.

John

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to