>>>>> "RS" == Robert Shanley <[email protected]> writes:

RS> journal.txt:
RS> = expr payee == "Joe"
RS>     SetAside            $100
RS>     MoreMoney          -$100

RS> 2022/01/05 * Joe
RS>     Stuff                                 $600.00
RS>     Checking

RS> ledger -f journal.txt balance :

RS>             $-600.00  Checking
RS>             $-200.00  MoreMoney
RS>              $200.00  SetAside
RS>              $600.00  Stuff

RS> What am I doing wrong?

Your automated transaction expression is matching each posting within your
transaction, since they both have a payee of Joe. Imagine your file had looked
like this:

2022/01/05 * Joe
    Stuff                                 $600.00

2022/01/05 * Joe
    Checking

That's where the doubling is coming from.

John

-- 

--- 
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/m2bkpe1zvg.fsf%40newartisans.com.

Reply via email to