example balance sheet report

144 views
Skip to first unread message

Simon Michael

unread,
Nov 20, 2008, 5:07:56 PM11/20/08
to ledge...@googlegroups.com
I'm working on reports which my accountant can recognise. Here's my
latest balance sheet script, for anyone interested. I'd like to see
what other folk are using.

#!/bin/sh
# balancesheet [extraoptions]
echo "Balance sheet as of `date`"
echo "totals include sub-accounts"
echo
ledger -nE --balance-format '%10T %2_%-a\n' --display "l<=2" --basis
--subtotal $* balance assets
echo
ledger -nE --balance-format '%10T %2_%-a\n' --display "l<=2" --basis
--subtotal $* balance liabilities
echo
ledger -nE --balance-format '%10T %2_%-a\n' --display "l<=4" --basis
--subtotal $* balance equity
echo
echo "`ledger --balance-format '%10T %2_%-a\n' --basis $* balance
liabilities equity | tail -1`liabilities + equity"
echo
ledger --balance-format '%10T %2_%-a\n' --basis $* balance assets
liabilities equity | tail -2

Reply all
Reply to author
Forward
0 new messages