>>>>> Carson Chittom <[email protected]> writes:

> I'm using ledger 2.6.3 (the version in the OpenBSD ports tree).  The
> --cleared and --uncleared options affect calculation.  Is there a way to
> *display* uncleared items, but to calculate balances as normal?

Yes, using the --display predicate.  I can't quite remember the syntax for how
to predicate on unclearedness in 2.x, though.

In general, Ledger (2.x and 3.x) use three types of predicates:

    --limit EXPR

        Only consider postings that satisfy EXPR.

    --only EXPR

        Like --limit, but happens after things like periodic grouping.  This
        lets you filter on monthly sub-totals, for example.

    --display EXPR

        Do all calculations as normal, but only display postings (or accounts)
        that match EXPR.

John

Reply via email to