diff options
Diffstat (limited to 'ledger/lib/balance')
-rwxr-xr-x | ledger/lib/balance | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ledger/lib/balance b/ledger/lib/balance index c9a1fd87..deb50d15 100755 --- a/ledger/lib/balance +++ b/ledger/lib/balance @@ -67,9 +67,12 @@ function display_accounts() { for (name in accounts) { for (u in accounts[name]) { + balance = accounts[name][u] + if (balance == 0) { + continue + } fmt = "NAME BALANCE UNIT\n" - balance = accounts[name][u] if (colorize) { sub("BALANCE", "[" (balance < 0 ? 31 : 32) "m&[m", fmt) |