Filter for transactions/postings that are cleared OR pending

31 views
Skip to first unread message

Shredder

unread,
Dec 29, 2020, 12:30:29 PM12/29/20
to Ledger
Hello everyone,

as I understand it, I can filter for transaction status using
--cleared: to only show cleared (*) transactions/postings
--pending: to only show pending (!) transactions/postings
--uncleared: to show transactions/postings that are pending (!) or neither cleared nor pending ( )

For a report use case, however, I would like to filter in a way that transactions/postings that are cleared (*) or pending (!) are considered and only transactions that are neither ( ) are discarded. Is there a way to achieve that?

Thanks a lot!
Shredder

Martin Michlmayr

unread,
Dec 29, 2020, 10:38:32 PM12/29/20
to ledge...@googlegroups.com
* Shredder <d3rsh...@gmail.com> [2020-12-29 09:30]:
> For a report use case, however, I would like to filter in a way that
> transactions/postings that are cleared (*) or pending (!) are
> considered and only transactions that are neither ( ) are discarded.
> Is there a way to achieve that?

-l "not cleared and not pending"

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

Shredder

unread,
Dec 30, 2020, 12:59:59 PM12/30/20
to Ledger
Hello Martin,

thank you very much! I was not aware that these words can just be used in value expressions, this is actually really intuitive :)
What I am looking for is actually the inverse of what you wrote, i.e. one of
-l "not (not cleared and not pending)"
-l "cleared or pending"
-l "not uncleared"
which all seem to work fine :)

Thanks again,
Shredder
Reply all
Reply to author
Forward
0 new messages