diff --git a/BalanceCommand.hs b/BalanceCommand.hs index b27341b75..85a085839 100644 --- a/BalanceCommand.hs +++ b/BalanceCommand.hs @@ -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