>>>>> Craig Earls <[email protected]> writes:

> I was thinking about this more and had a possible (impossible?) suggestion.
> Can you use value expressions in the posting?  Like this:
> 
> = /Employees:.*:Payroll$/ and expr (amount >= X or amount < Y)
>       Taxes Owed           10000+0.27(amount-10000)
>       Assets

Why, of course you can, just with a slightly different syntax.

  = /Employees:.*:Payroll$/ and expr (amount >= X or amount < Y)
        Taxes Owed           (10000+0.27*(amount-10000))
        Assets

Note that you are using amounts without commodities here with
addition/subtraction, which may cause an error, or multiple postings to get
generated in the final transaction.

John

Reply via email to