# Commands:
#	"code" {code} {desc}			Create a Transaction Code
#	"acct" {name} {parent} {desc}		Create an account
#	"year" {year}				Set the current year
#	"assert" "balance" {acct} {amount}	Verify expected balance
#
# Transactions:
#	{tid} {mm}"/"{dd} {amount} {code} {src}"->"{dst} {desc}
#
#	tid	Transaction ID (can be anything, typically a check number)
#	mm/dd	month and day the transaction occurred (use the "year" cmd
#		to set the year)
#	amount	transaction amount (always positive)
#	code	transaction code
#	src	source account
#	dst	destination account
#	desc	freeform transaction description
#
# Usage:
#	balance [-b acct] [-e yyyy/mm/dd] [file]
#
#	-b      print final balance for acct.
#	-e      only process transactions through yyyy/mm/dd
#
# Transaction Codes
#
code D		deposit
code BC		brokerage check
code C		check
code ATM	ATM transaction
code VOID	voided transaction
code DC		debit card
code AP		automatic payment
code IT		internet transfer
code DD		direct debit

acct brokerage		.		Brokerage Account
acct c			.		Checking Account
acct cash		.		Cash
acct paypal		.		www.paypal.com
acct sec		.		securities and exchange commission

acct Misc		.		Misc. expenses
acct usps		Misc		United States Post Office
acct movie		Misc		Movies

acct People		.		People
acct mom		People		Mom

acct Hobbies		.		Hobbies
acct Climbing		Hobbies		Rock Climbing Expenses
acct plangran		Climbing	Planet Granite

acct Store		.		Stores
acct frys		Store		Fry's Electronics
acct target		Store		Target
acct kmart		Store		K-Mart
acct amazon.com		Store		Amazon.com
acct nobhill		Store		Nob Hill (Grocery)
acct anymountain	Store		Any Mountain (outdoors)
acct rei		Store		REI (outdoors)
acct murasaki		Store		Murisaki Futon Shop
acct yamagamis		Store		Yamagami's Nursery
acct drugfair		Store		Drug Fair
acct longsdrugs		Store		Long's Drugs

acct Bills		.		Bills
acct pacbell		Bills		Pacific Bell

acct CC			Bills		Credit Cards
acct mastercard		CC		Mastercard
acct discover		CC		Discover card

acct Restaurant		.		Restaurants
acct thaithai		Restaurant	Thai Thai Cuisine (Sterling, NJ)
acct britarms		Restaurant	Britianna Arms (Cupertino, CA)
acct applebees		Restaurant	Applebee's
acct miyake		Restaurant	Miyake (Sushi, Cupertino, CA)
acct pancakehouse	Restaurant	Pancake House (Cupertino, CA)


#
# Transactions
#
#number	date		amount		code	[src]->dst	desc
#------	----		------		----	----------	----
#
year 2000
-	11/17		1000		D	->c		some deposit
123	11/18		500		C	c->mastercard	some payment
-	11/20		200		ATM	c->cash		ATM withdrawl
-	11/22		55.22		AP	c->pacbell	some automatic phone payment
-	12/25		54321.00	IT	brokerage->c	insider trading kicks ass
year 2001
-	1/1		54321.00	IT	c->brokerage	damn, damn, damn
-	1/1		195225.00	BC	brokerage->sec	SEC found me out

assert balance c 244.78
