On Mon, Sep 27, 2010 at 6:48 AM, Nexes <[email protected]> wrote:
> Could someone give me an example of an automated transaction that will
> only take effect if the date is greater than some comparison date?
>
> I am trying to make an automated transaction for taxes, but it doesn't
> play nicely if you use the equity function (it applies taxes to the
> old stuff which is not what I want it to do).

In my ledger (using version 2.6) I have a virtual transaction that
automatically splits expenses with my roommate that looks like this:

= d>=[2010/02/10] & /^(?:Expenses:(Cable|Utils))/ & !/Expenses:Utils:Water/
   $account                                     -0.5
   Assets:Receivable:Andrew                      0.5

This says: day >= 2010/02/01 AND  account matches the first reges AND
account does not match the second regex.

Reply via email to