File: opt-equity.test

package info (click to toggle)
ledger 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,964 kB
  • sloc: cpp: 39,393; python: 4,476; perl: 1,309; sh: 477; lisp: 435; yacc: 103; makefile: 58
file content (49 lines) | stat: -rw-r--r-- 2,451 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
41
42
43
44
45
46
47
48
49
D 1000.00 GBP

2011-03-04 Buy shares
    Assets:Broker           2 AAA @ 0.90 GBP
    Assets:Bank

2011-03-05 Buy shares
    Assets:Broker           2 AAA @ 1.00 GBP
    Assets:Bank

test reg --equity
11-Mar-05 Opening Balances      Assets:Bank               -3.80 GBP    -3.80 GBP
                                Assets:Broker                 4 AAA        4 AAA
                                                                       -3.80 GBP
                                Equit:Opening Balances       -4 AAA    -3.80 GBP
                                Equit:Opening Balances     3.80 GBP            0
end test

test reg assets --equity
11-Mar-05 Opening Balances      Assets:Bank               -3.80 GBP    -3.80 GBP
                                Assets:Broker                 4 AAA        4 AAA
                                                                       -3.80 GBP
                                Equit:Opening Balances       -4 AAA    -3.80 GBP
                                Equit:Opening Balances     3.80 GBP            0
end test

test reg assets:bank --equity
11-Mar-05 Opening Balances      Assets:Bank               -3.80 GBP    -3.80 GBP
                                Equit:Opening Balances     3.80 GBP            0
end test

test reg assets:broker --equity
11-Mar-05 Opening Balances      Assets:Broker                 4 AAA        4 AAA
                                Equit:Opening Balances       -4 AAA            0
end test

test reg --lots --date-format %Y/%m/%d --equity
2011/03/05 Opening Balances     Assets:Bank               -3.80 GBP    -3.80 GBP
                                Assets:Broker          2 AAA {0.90 GBP} [2011/03/04] 2 AAA {0.90 GBP} [2011/03/04]
                                                                       -3.80 GBP
                                Assets:Broker          2 AAA {1.00 GBP} [2011/03/05] 2 AAA {0.90 GBP} [2011/03/04]
                                                   2 AAA {1.00 GBP} [2011/03/05]
                                                                       -3.80 GBP
                                Equit:Opening Balances -2 AAA {0.90 GBP} [2011/03/04] 2 AAA {1.00 GBP} [2011/03/05]
                                                                       -3.80 GBP
                                Equit:Opening Balances -2 AAA {1.00 GBP} [2011/03/05]    -3.80 GBP
                                Equit:Opening Balances     3.80 GBP            0
end test