* Jeff Abrahamson <[email protected]> [2019-08-18 16:51]:
> I find myself wanting to query on transaction amounts.
>
> ] reg amount 7.53
> ...see all transactions that have (credit or debit or both with)
> value 7.53...
> ]
>
> I've read the docs through twice, I'm not seeing it. Is this not
> possible or did I miss it?
You can do -l "amount == ..."
ledger -f d reg -l "amount == 7.53 EUR"
or if you want both credit and debits:
ledger -f d reg -l "abs(amount) == 7.53 EUR"
Example:
2018-01-01 * foo
A 7.53 EUR
B
2018-01-01 * Refund
A -7.53 EUR
B
ledger -f d reg A -l "abs(amount) == 7.53 EUR"
2018-01-01 foo A 7.53 EUR 7.53 EUR
2018-01-01 Refund A -7.53 EUR 0
--
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/20190818145405.GB10611%40jirafa.cyrius.com.