On Sun, Apr 20, 2014 at 9:19 AM, Martin Michlmayr <[email protected]> wrote:

> * Martin Blais <[email protected]> [2014-04-19 14:42]:
> > The way I handle this in Beancount is that you have different "views" on
> > your transactions. A view is a subset of transactions. The most obvious
> one
> > is "by year", but there are many others (tagged entries, for instance).
> For
> > each of these views, there are opening balances report (beginning),
> balance
> > sheet (ending), income statement, and other reports.
>
> How flexible is this system?  Can I re-write existing transactions to
> something else?
>
> Here's a feature request I submitted
> http://bugs.ledger-cli.org/show_bug.cgi?id=714
> that explains what I'm looking for.
>

You could post-process the transactions to do whatever you want. My
approach to these custom things is that I don't provide a language, you
just write Python to do it, I don't believe I could ever foresee all the
possible modifications users could want.

The data structure is documented here:
https://hg.furius.ca/public/beancount/file/tip/src/python/beancount/core/data.py

There's also an example script here demonstrating how to do post-processing:
https://hg.furius.ca/public/beancount/file/tip/src/python/beancount/scripts/forecast.py

The downside is you end up writing code.
Ledger provides these custom things as features, so it's richer.
It's a different approach to the problem.


But... I think you could solve your AdSense problem in Ledger with just
different accounts. I also use AdSense, I have to run right now, let me
check what I do for it and I'll come back to you with a different solution.






>
> --
> Martin Michlmayr
> http://www.cyrius.com/
>
> --
>
> ---
> 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