Skip to content

1.27: hledger is and bs commands no longer filter accounts before a pivot #2018

Description

@sorbits

It used to be that with a ledger entry like this:

2023-03-23 Family Mart | Ice cream
    Assets:Cash      -115.00 TWD
    Expenses:Food     115.00 TWD

We could run the following query hledger is --pivot payee and get an income statement showing 115 TWD paid to Family Mart.

I believe that this broke starting with hledger 1.27 and it now generates an empty income statement.

The issue seems to be that Assets:Cash is not filtered out prior to replacing all account names with payee, so we get an income statement for this:

2023-03-23 Family Mart | Ice cream
    Family Mart    -115.00 TWD
    Family Mart     115.00 TWD

As a workaround we can instead run this query: hledger bal Expenses --pivot payee which does give the expected result, but here we explicitly filter on Expenses.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.balancesheetbountyThar's some kind o' loot on offer..cashflowincomestatementregressionA backwards step, indicating a weakness in our QA. We don't like these.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions