>> = /Employer:Payroll/?a>500:0
>
> Since automated expression predicates now follow report query syntax,
> you need this:
>
>  = expr account =~ /Employer:Payroll/ and amount > 500

Ah... that doesn't seem to work - it doesn't apply to any of the
entries, when it should apply to the first:
--
$ ledger3 -f test2.lgr bal
           $1,000.00  Accounts:Checking
          $-1,000.00  Employer:Payroll
--

In poking around with this, I noticed something odd - if you use this
automated expression in the file I originally posted:

= account =~ /Employer:Payroll/

you get:
--
$ ledger3 -f test2.lgr bal
           $1,000.00  Accounts
           $1,100.00    Checking
            $-100.00    Savings
          $-1,000.00  Employer:Payroll
--

Which is the inverse of this original expression:

= /Employer:Payroll/

--
$ ledger3 -f test2.lgr bal
           $1,000.00  Accounts
             $900.00    Checking
             $100.00    Savings
          $-1,000.00  Employer:Payroll
--

Does that seem right?

Is there a reference for the report query syntax?   I tried looking at
the source but didn't get very far.

Thanks,
Zack

Reply via email to