I don't think ledger can calculate quantities at two separate times in one run. You could probably do it with python — Sent from Mailbox for iPhone
On Fri, Apr 12, 2013 at 7:08 PM, Jim Robinson <[email protected]> wrote: > It seems likely that there will be a way to do this with the formatter, > some fairly intricate examples have been shown here. > If not, you could pipe the ledger output to awk: > $ cat sample.txt > 2013-01-01 > Equity $10,000 > Expenses $8000 > 2013-01-31 > Equity $8,000 > Expenses $8200 > $ cat sample.txt | awk -f sample.awk > Report Jan 2013 > Account name Incoming balance Difference Outgoing balance > Equity $ 10,000.00 $( 2,000.00) $ 8,000.00 > Expenses $ 8,000.00 $ 200.00 $ 8,200.00 > It wasn't clear to me if your report had multiple months in it at once, or > if they were always paired... > Jim > -- > --- > 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/groups/opt_out. -- --- 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/groups/opt_out.
