>>>>> "RS" == Rolf Schröder <[email protected]> writes:
RS> So I wonder, whether I can apply my automated transaction to all postings
RS> of a transaction if any of the posting matches my automated transaction's
RS> criteria? Is there any other possible solution to my problem?
The "any" function will apply a predicate to every posting within a
transaction. So you'd write:
= expr any (account =~ /Assets:ThatBankAccount/)
$account -0.5
This will halve every posting in a transaction, if any of that transaction's
posting match the given account regexp.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
--
---
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].
For more options, visit https://groups.google.com/d/optout.