summaryrefslogtreecommitdiff
path: root/scripts/bal
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-21 06:20:21 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-21 06:20:21 -0400
commit9f5cb900e58653de6fd4f2983d3dcbe23662c35d (patch)
treea06833f2e70d9bb76d8076be90029128b91d6666 /scripts/bal
parentba0a928883752398da5c3d3e5c1485e51940f237 (diff)
downloadfork-ledger-9f5cb900e58653de6fd4f2983d3dcbe23662c35d.tar.gz
fork-ledger-9f5cb900e58653de6fd4f2983d3dcbe23662c35d.tar.bz2
fork-ledger-9f5cb900e58653de6fd4f2983d3dcbe23662c35d.zip
changes to bal script
Diffstat (limited to 'scripts/bal')
-rwxr-xr-xscripts/bal17
1 files changed, 7 insertions, 10 deletions
diff --git a/scripts/bal b/scripts/bal
index a6d97ab9..ca79b8ad 100755
--- a/scripts/bal
+++ b/scripts/bal
@@ -1,26 +1,23 @@
#!/bin/sh
-switch=""
-current="-c"
-limit="-l \$50"
+switch="-c"
+limit="-d /^Liabilities/?T<0:(T&AT>{\$100.00})"
-if [ "$1" = "-C" -o "$1" = "-U" -o "$1" = "-P" ]; then
+if [ "$1" = "-C" -o "$1" = "-U" ]; then
switch="$1"
shift
elif [ "$1" = "-b" -o "$1" = "-e" ]; then
- current="$1 $2"
+ switch="$1 $2"
shift 2
fi
accts="$@"
if [ -z "$accts" ]; then
accts="-Equity -Income -Expenses"
- if [ ! "$switch" = "-P" ]; then
- accts="$accts -Savings -Retirement"
- fi
+ accts="$accts -^Retirement"
+ accts="$accts -Deposits"
else
limit=""
- negonly=""
fi
-ledger $current $limit $negonly -s $switch balance $accts
+ledger $switch $limit -s -S "-AT" -V -Q balance $accts