> On Sep 23, 2015, at 10:20 AM, John Wiegley <[email protected]> wrote: > >>>>>> 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.
Thank you John! This feature is xact-ly what I need! I'm saved! We should get xact.id into the documentation, so that other users can learn that it exists. > 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. I'm on the right path now, thank you. And I'm sorry that my original report was hard to understand, I was swamped at that moment too. I'll be able to work on this with a clearer mind soon. -- --- 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.
