mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-10 05:39:31 +03:00
show the balance report's zero total when -E is used
This commit is contained in:
parent
9203588d6d
commit
83b0ebf832
@ -129,7 +129,7 @@ showBalanceReport opts args l = acctsstr ++ totalstr
|
||||
interestingaccts = filter (isInteresting opts l) acctnames
|
||||
acctnames = sort $ tail $ flatten $ treemap aname accttree
|
||||
accttree = ledgerAccountTree (depthFromOpts opts) l
|
||||
totalstr | isZeroMixedAmount total = ""
|
||||
totalstr | not (Empty `elem` opts) && isZeroMixedAmount total = ""
|
||||
| otherwise = printf "--------------------\n%s\n" $ padleft 20 $ showMixedAmount total
|
||||
where
|
||||
total = sum $ map abalance $ topAccounts l
|
||||
|
Loading…
Reference in New Issue
Block a user