In article <[email protected]>, Lifepillar <[email protected]> wrote:
> In article > <[email protected]> > , > Bill <[email protected]> wrote: > > > Hi, > > > > I'm looking for a way to convert budget entries in ledger file with > > different period expressions to an annual basis, in order to understand the > > overall cash flow of the budget. > > [snip] > > You won't get exactly that output, but I usually do a similar thing as > follows: > > ~ Monthly since 2015/01/01 > Expenses:Rent $500 > Assets > > ~ Weekly since 2015/01/01 > Expenses:Groceries $100 > Assets > > ~ Bimonthly since 2015/01/01 > Assets:Checking $100 > Income:Salary > > ledger budget --now 2015/12/31 expenses income By tweaking the format, you may get what you want. Try: ledger budget --now 2015/12/24 expenses income -F '%(justify((get_at(display_total, 1) ? -scrub(get_at(display_total, 1)) : 0.0), 16, -1, true, color)) %(!options.flat ? depth_spacer : "") %-(ansify_if(partial_account(options.flat), blue if color))\n%/%$1 %$2 %$3\n%/%(prepend_width ? " " * int(prepend_width) : "") -------------- ------------\n' The above command must be on a single line (line breaks may not be preserved when sending this message). Enjoy, Life -- --- 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.
