>>>>> "RS" == Robert Shanley <
rjsha...@gmail.com> 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