summaryrefslogtreecommitdiff
path: root/report
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-10-02 05:04:38 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-10-02 05:04:38 +0000
commit3cfae2794784c1629dd98c0b600b2731e27a3f57 (patch)
tree5339db0e7df4b6f925788270d8c805111e729ae1 /report
parentbfff951c310b0b1b4f2ddaf3d69549bd3bac2717 (diff)
downloadfork-ledger-3cfae2794784c1629dd98c0b600b2731e27a3f57.tar.gz
fork-ledger-3cfae2794784c1629dd98c0b600b2731e27a3f57.tar.bz2
fork-ledger-3cfae2794784c1629dd98c0b600b2731e27a3f57.zip
*** empty log message ***
Diffstat (limited to 'report')
-rwxr-xr-xreport24
1 files changed, 12 insertions, 12 deletions
diff --git a/report b/report
index 9e67850d..ecd67e0d 100755
--- a/report
+++ b/report
@@ -1,20 +1,20 @@
#!/bin/bash
-binary=ledger
-LEDGER=$HOME/doc/finance/ledger.dat
-
-line="$binary -f $ledger"
-
command=$1
shift
case "$command" in
- balance) $line "$@" balance -s -- -Equity -Income -Expenses -Retirement ;;
- worth) $line "$@" balance assets liabilities ;;
- profit) $line "$@" balance income expense ;;
- spending) $line "$@" balance -F food movies gas tips \
+ balance) ledger "$@" balance -- -Equity -Income -Expenses -Retirement ;;
+ worth) ledger "$@" balance assets liabilities ;;
+ profit) ledger "$@" balance income expense ;;
+ spending) ledger "$@" balance -F food movies gas tips \
health supplies -insurance -vacation ;;
- huquq) $line "$@" balance ^huquq ;;
- gold) $line "$@" balance -G $1 ^huquq ;;
- equity) $line "$@" equity -- -^Income -^Expenses -^Equity ;;
+ monthly_spending)
+ for i in jan feb mar apr may jun jul aug sep oct nov dec
+ do
+ echo $i:
+ $0 spending -d $i
+ done ;;
+ huquq) ledger "$@" balance -n ^huquq ;;
+ equity) ledger "$@" equity -- -^Income -^Expenses -^Equity ;;
esac