On May 18, 2010, at 6:49 PM, John Wiegley wrote: > Something further I wanted to note about Ledger 3.0:
And for even more trickery, consider this: = /foo/ (Expenses:Food) (any(account =~ /MasterCard/) ? amount * 0.10 : amount * 0.20) If any posting's account matches the regex "foo", a virtual posting is appended to that posting's transaction. If the account of the matched posting matches "MasterCard", then the amount of the appended posting is that amount increased by 10%, otherwise it is that amount increased by 20%. The new manual will have a very long treatment of value expression and the power of evaluation contexts. John
