summaryrefslogtreecommitdiff
path: root/sample.dat
blob: 4640f45675d2ee8625424b6f595c7bea8ebe0a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
;; If Python support is enabled, then the following code may be
;; uncomment to demonstrate a rather useless example.

; !python
; from ledger import *
; def foo(d, val):
;     return d.xact.amount + val
; !end
; 
; --value-expr 'foo'{$100}

2004/05/01 Checking balance
  Assets:Checking               $500.00
  Equity:Opening Balances

2004/05/29 Book Store
  Expenses:Books                 $20.00
  Assets:Checking

2004/05/29 Restaurant
  Expenses:Food                  $50.00
  Liabilities:MasterCard

2004/09/16 Foo
  Assets:Foo                    $50
  Income:Bar