You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
balance -E (and hledger-ui Z) not showing zero parent accounts (1.19-1.22) #1688
With any hledger version >1.18, I'm unable to show the two zero-balance parent accounts here. I expected that -E, certainly when combined with --no-elide, would show them and their 0 balance as separate line items.
I think between 1.18 and 1.19 we switched from --tree as default to --flat as default. Can you check if hledger-1.19 -f b.j bal -E --no-elide --tree does what you want?
Indeed, it looks like -E will only show empty leaves, and not empty branches. This is probably reasonable behaviour for tree mode, but not for flat mode. Should I update this and add some new tests?
changed the title [-]bal --no-elide (and -E, and hledger-ui zero display ?) not working as I expected[/-][+]balance -E (and hledger-ui Z) not showing zero parent accounts (1.19-1.22)[/+]on Sep 21, 2021
Activity
simonmichael commentedon Sep 8, 2021
Repro:
It seems --no-elide's original function broke (a long time ago! [well, a year ago]). Perhaps with that fixed things will make more sense.
Xitian9 commentedon Sep 8, 2021
I think between 1.18 and 1.19 we switched from --tree as default to --flat as default. Can you check if
hledger-1.19 -f b.j bal -E --no-elide --treedoes what you want?simonmichael commentedon Sep 8, 2021
@Xitian9, ah good point. Yes that works; you remind me that
--no-elidedoes that thing only in tree mode.Maybe my problem is with
-E? Or I could still be confused. See:All in list mode here. I expected the -E flag to reveal both the a and a:b accounts.
Xitian9 commentedon Sep 9, 2021
Indeed, it looks like
-Ewill only show empty leaves, and not empty branches. This is probably reasonable behaviour for tree mode, but not for flat mode. Should I update this and add some new tests?https://github.com/simonmichael/hledger/blob/4cb631c0f2de99a609bfa6c25b0c3de1bd07bc71/hledger-lib/Hledger/Reports/MultiBalanceReport.hs#L410-L414
simonmichael commentedon Sep 9, 2021
That would be great, thanks.
fix: balance: Show all empty accounts in flat balance reports. (hledg…
fix: balance: Show all empty accounts in flat balance reports. (#1688)
[-]bal --no-elide (and -E, and hledger-ui zero display ?) not working as I expected[/-][+]balance -E (and hledger-ui Z) not showing zero parent accounts (1.19-1.22)[/+]