On September 14, 2015 John Wiegley wrote:

> >>>>> Michael Toomim <[email protected] <javascript:>> writes: 
>
> > Ledger also doesn't natively export lot prices. We need lot prices to 
> > compute capital gains. They are locked in my ledger files. How to get 
> them 
> > out? 
>
> You should be able to use "lot_price" in any value expression to access 
> that 
> detail.  For example, in a format string: %(lot_price). 
>

John, using %(lot_price)  as you suggested actually results in an Error: 
Too few arguments to function.

Here's the command I'm using:

ledger csv -f test2.ledger --prepend-format \'"%(lot_price)",\'


In my testing, it only runs if I pass it two arguments. What are the 
arguments?

-- 

--- 
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