This doesn't seem to work. My rule looks like:

= d>=[2010/01/01] & /^Income:Standard:.*/
  (Liabilities:Taxes)         0.25

And it is not matching a translation that looks like:

2010/09/26 Opening Balances
  stuff

If I change it to:
= d >= [2010/01/01] & /^Income:Standard:.*/
  (Liabilities:Taxes)         0.25

for some reason it seems to match anything with a d inside of it,
which doesn't really make sense to me (because d >= [2010/01/01] is
not a regular expression I would see matching the entries it seems to
be).

Does anyone know why it doesn't seem to be working?

On Sep 27, 11:50 pm, Nexes <[email protected]> wrote:
> Thank you. Time to try it out.
>
> On Sep 27, 9:50 pm, Peter Keen <[email protected]> wrote:
>
>
>
>
>
>
>
> > 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