Visitar URL original
account-specific depth doesn't work with register and report interval · Issue #2423 · hledgerorg/hledger · GitHub
Skip to content

account-specific depth doesn't work with register and report interval #2423

Closed

Description

@simonmichael

register correctly shows food postings with a different depth here:

$ hledger -f examples/sample2.journal reg expenses --depth 1  --depth food=2
2025-01-01 pay rent                   expenses                      800.00 USD    800.00 USD
2025-01-04 shopping                   expenses:food                 200.00 USD   1000.00 USD
                                      expenses                       50.00 USD   1050.00 USD

but not if there's a report interval, like -M:

$ hledger -f examples/sample2.journal reg expenses --depth 1  --depth food=2 -M
2025-01   expenses                                                 1050.00 USD   1050.00 USD

it probably should look more like this:

$ hledger -f examples/sample2.journal reg expenses --depth 1  --depth food=2 -M
2025-01   expenses                                                  850.00 USD    850.00 USD
          expenses:food                                             200.00 USD   1050.00 USD

Activity

  1. added
    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.
    annoyance2-minorMinor to moderate usability/doc bug, reasonably easy to avoid or tolerate.
    affects3-fewAffects just a few users.
    on Jul 3, 2025
  2. simonmichael commented on Jul 3, 2025

    @simonmichael
    MemberAuthor

    Related to @Xitian9's #2292.

  3. simonmichael commented on Sep 25, 2026

    @simonmichael
    MemberAuthor

    Fixed by 121d340.

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.affects3-fewAffects just a few users.annoyance2-minorMinor to moderate usability/doc bug, reasonably easy to avoid or tolerate.register

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions