summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/Ledger3.texi9
-rw-r--r--test/input/drewr3.dat67
2 files changed, 72 insertions, 4 deletions
diff --git a/doc/Ledger3.texi b/doc/Ledger3.texi
index c3a2e183..ae614f56 100644
--- a/doc/Ledger3.texi
+++ b/doc/Ledger3.texi
@@ -266,10 +266,11 @@ You can also find help at the @samp{#ledger} channel on the IRC server
@section Start a Journal File
A journal is a record of your financial transactions and will be central
-to using LEDGER. For now we just want to get a teast
-of what ledger can do. An example journal is included with the source
-code distribution, called @file{drewr.dat} (it is copied in @pxref{Example Data File}).
-Copy it someplace convenient and open up a terminal window in that directory.
+to using LEDGER. For now we just want to get a taste of what LEDGER can
+do. An example journal is included with the source code distribution,
+called @file{drewr3.dat} (it is copied in @pxref{Example Data File}).
+Copy it someplace convenient and open up a terminal window in that
+directory.
If you would rather start with your own journal right away please skip
to @xref{Keeping a Journal}.
diff --git a/test/input/drewr3.dat b/test/input/drewr3.dat
new file mode 100644
index 00000000..ca4fc6cf
--- /dev/null
+++ b/test/input/drewr3.dat
@@ -0,0 +1,67 @@
+; -*- ledger -*-
+
+= /^Income/
+ (Liabilities:Tithe) 0.12
+
+~ Monthly
+ Assets:Checking $500.00
+ Income:Salary
+
+~ Monthly
+ Expenses:Food $100
+ Assets
+
+2010/12/01 * Checking balance
+ Assets:Checking $1,000.00
+ Equity:Opening Balances
+
+2010/12/20 Organic Co-op
+ Expenses:Food:Groceries $ 37.50 ; [=2011/01/01]
+ Expenses:Food:Groceries $ 37.50 ; [=2011/02/01]
+ Expenses:Food:Groceries $ 37.50 ; [=2011/03/01]
+ Expenses:Food:Groceries $ 37.50 ; [=2011/04/01]
+ Expenses:Food:Groceries $ 37.50 ; [=2011/05/01]
+ Expenses:Food:Groceries $ 37.50 ; [=2011/06/01]
+ Assets:Checking $ -225.00
+
+2010/12/28=2011/01/01 Acme Mortgage
+ Liabilities:Mortgage:Principal $ 200.00
+ Expenses:Interest:Mortgage $ 500.00
+ Expenses:Escrow $ 300.00
+ Assets:Checking $ -1000.00
+
+2011/01/02 Grocery Store
+ Expenses:Food:Groceries $ 65.00
+ Assets:Checking
+
+2011/01/05 Employer
+ Assets:Checking $ 2000.00
+ Income:Salary
+
+2011/01/14 Bank
+ ; Regular monthly savings transfer
+ Assets:Savings $ 300.00
+ Assets:Checking
+
+2011/01/19 Grocery Store
+ Expenses:Food:Groceries $ 44.00
+ Assets:Checking
+
+2011/01/25 Bank
+ ; Transfer to cover car purchase
+ Assets:Checking $ 5,500.00
+ Assets:Savings
+ ; :nobudget:
+
+2011/01/25 Tom's Used Cars
+ Expenses:Auto $ 5,500.00
+ ; :nobudget:
+ Assets:Checking
+
+2011/01/27 Book Store
+ Expenses:Books $20.00
+ Liabilities:MasterCard
+
+2011/12/01 Sale
+ Assets:Checking:Business $ 30.00
+ Income:Sales