From 83b0ebf832fba137e914b6364678bdc5d849cfb9 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 2 Apr 2009 06:22:39 +0000 Subject: [PATCH] show the balance report's zero total when -E is used --- BalanceCommand.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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