jwiegley/ledger — Issue #53: Feature request: add an option to output periodic transactions
Author: lifepillar
Created: 2012-01-14 20:29:29+00:00
State: open

In order to be able to export all the relevant information from a ledger file, it would be useful to be able to print the list of periodic transactions. I suggest to add an option --periodic, which might be used with commands like print or csv. For example, given the following data:

~ Every 2 weeks
Assets:Checking $500.00
Income:Salary

~ Monthly from 2010/01/01 until 2010/12/01
Expenses:Food $100
Assets

2010/12/01 * Checking balance
Assets:Checking $1,000.00
Equity:Opening Balances

a command like

ledger csv --periodic

would output

"Every 2 weeks","","","","","Assets:Salary","$","500","",""
"Monthly","2010/01/01","2010/12/01","","","Expenses:Food","$","100","",""

There would be three fields to specify a period (length, start date, end date) and, maybe, fields that are irrelevant to periodic transactions, if any, should be removed.