diff options
author | makefu <github@syntax-fehler.de> | 2013-11-19 08:35:51 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-11-19 08:35:51 +0100 |
commit | 5788b95fe7834d3049df9de1009f3d8dbc34fea2 (patch) | |
tree | 76675a9579c7c5e269825bfa73d29fe5256b8afb /ledger/lib | |
parent | c15a8d15e910a39a641b21df08e13325a0e29293 (diff) | |
parent | 6f956cfe65ee00871bc9be19b2acadabb6638a69 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'ledger/lib')
-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) |