* Robert Shanley <[email protected]> [2022-11-08 17:51]:
> = expr payee == "Joe"
>     SetAside            $100
>     MoreMoney          -$100
> 
> 2022/01/05 * Joe
>     Stuff                                 $600.00
>     Checking
> 
> What am I doing wrong?

My guess is that it's evaluated for each posting, so once for Stuff
and once for Checking.  Therefore $200

You could do something like:

= /Stuff/ and expr payee == "Joe"
    SetAside            $100
    MoreMoney          -$100

-- 
Martin Michlmayr
https://www.cyrius.com/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/Y2siuzj9qqPoeTxC%40jirafa.cyrius.com.

Reply via email to