hledger icon indicating copy to clipboard operation
hledger copied to clipboard

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

Open simonmichael opened this issue 8 months ago • 1 comments

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

simonmichael avatar Jul 03 '25 15:07 simonmichael

Related to @Xitian9's #2292.

simonmichael avatar Jul 03 '25 15:07 simonmichael