On May 13, 2010, at 7:42 PM, Peter Ross wrote:
>> can I use tags in value expressions? I'm trying to set an automated
>> transaction that would select only "tagged" entries.
>>
> Here is how I automatically deduct GST (VAT in the rest of the world)
> from any expenses which are tagged :gst:
>
> = tag gst and /^Expenses/
> $account -0.090909091
> Liabilities:BAS:GST:GST Paid 0.090909091
Yes, automated expressions nowadays use report query syntax, not value expression syntax. This is both more compatible with 2.x, and also easier for simpler queries like above. Use the 'expr' keyword to introduce a real value expression in these cases:
= expr tag(/gst/) and expr account=~/^Expenses/
At least, that's how it's meant to work. :)
John