>>>>> 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

Reply via email to