Skip to content

In queries: Match a date on a certain account #2430

@thielema

Description

@thielema

First I like to wish clarification what date in a query actually matches on.
Every posting in a transaction can have a different date. What date does a date query actually match?
I assume that if any posting's date falls into a queried period then the transaction is selected.

If this is true, this is problematic since it means that in a multi-period balance some transactions are included in multiple periods.

For now, I observed the problem in hledger-web since a date query combined with inacct shows transactions with inacct-posting dates that do not match the date period. I think I need a date query that only matches the date of certain accounts.

I guess the solution in my case is to better not use posting dates, at all. At least, the meaning of date queries with respect to posting dates should be clarified in the query docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    queriesFiltering options, query arguments..webThe hledger-web tool.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions