File: 713-a.test

package info (click to toggle)
ledger 3.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,756 kB
  • ctags: 5,063
  • sloc: cpp: 36,839; lisp: 3,959; python: 3,939; perl: 1,309; sh: 473; makefile: 121; cs: 118; yacc: 103
file content (40 lines) | stat: -rw-r--r-- 1,185 bytes parent folder | download | duplicates (7)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40

2011-01-01 * Opening balance
    Assets:Cash                               25.00 GBP
    Equity:Opening balance                   -25.00 GBP

2011-02-01 * Buy 1 AAA for 10.00 GBP
    Assets:Investments                 1 AAA {10.00 GBP}
    Assets:Cash                              -10.00 GBP

2011-03-07 * Sell one AAA with a gain
    Assets:Cash                               12.00 GBP
    Assets:Investments  -1 AAA {10.00 GBP} @@ 12.00 GBP
    Income:Capital gains                      -2.00 GBP

2011-04-01 * Buy 1 BBB for 15.00 GBP
    Assets:Investments                 1 BBB {15.00 GBP}
    Assets:Cash                              -15.00 GBP

test bal -B Assets:Investments -p "until 2011-02-20"
           10.00 GBP  Assets:Investments
end test

test bal -B Assets:Investments -p "until 2011-03-20"
end test

test bal -B Assets:Investments -p "until 2011-04-20"
           15.00 GBP  Assets:Investments
end test

test bal Assets:Investments -p "until 2011-02-20"
               1 AAA  Assets:Investments
end test

test bal Assets:Investments -p "until 2011-03-20"
end test

test bal Assets:Investments -p "until 2011-04-20"
               1 BBB  Assets:Investments
end test