I do really advanced reporting with my ledgers but I don’t usually use the
ledger cli tool for it. I mainly use the ledger tool to sanity check my
files and then have it export to CSV with a custom format string that
captures more info, and then dump the result into PostgreSQL for reporting
with a ruby web front end.

Core system: https://github.com/peterkeen/ledger-web

My personal implementation:
https://github.com/peterkeen/ledger-app

The format string I use is in the ledger_format config setting in this
file:
https://github.com/peterkeen/ledger-app/blob/master/config.rb


On Sun, Jun 17, 2018 at 5:51 PM Colin Dean <[email protected]> wrote:

> So far, most of my needs for reporting have been satisfied by simple
> balance reporting, sometimes with some custom formatting.
>
> For some more advanced stuff, I've got a Ruby script that captures the
> output of a few ledger balance reports and then runs some further
> calculations. For example, I want to sum the total expenses of a few
> accounts, half of the expenses of another few accounts, and then some more
> complex logic for some others. Is there a way to do this within ledger?
>
> Next up, I want to try to calculate my savings rate. Is there something
> that would let me effectively capture the output of two balance reports?
> E.g. ledger bal --start "Jan 1" (Assets / (Income - Expenses:Taxes))
>
> I'm working up in my head some kind of wrapper around ledger that would
> let me define simple and complex reports in some kind of manifest format
> and then dump that output to a nice-looking report. I've kinda already
> cobbled something together for the non-profit for which I use ledger, but I
> want to refactor it into something more maintainable than a 1000 line
> Makefile ;-)
>
> --
>
> ---
> 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.
>

-- 

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