That totally looks like it should work. Unfortunately what I actually end up with is it matching everything where amount < 0, irregardless of the regular expression. Bug?
--Paul On Sat, Mar 17, 2012 at 1:48 PM, John Wiegley <[email protected]> wrote: > >>>>> Paul Lathrop <[email protected]> > writes: > > > ; This automated transaction will compute the "cash back" on my > > ; Capital One rewards card. > > = /Liabilities:Capital One/ > > Assets:Capital One Rewards -0.01 > > * Income:Miscellaneous 0.01 > > > This worked until I started registering payments to my card. Obviously > > payments don't get a "cash back" reward. I've dug into the manual and > while > > I'm convinced ledger can do what I want, I'm just not sure how to make an > > automatic transaction that only triggers when the matched transaction is > > negative, i.e. when I charge something, but not when I pay. > > > Can anyone point me in the right direction? > > You need to use this predicate: > > = /Liabilities:Capital One/ and expr amount < 0 > > John >
