summaryrefslogtreecommitdiff
path: root/test/baseline/cmd-balance.test
blob: 064a046d9154ec04d5ee7c81ec6107f3d8286dba (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85

2012-01-01 * Opening balances
    Assets:A                      10.00
    Equity:Opening balances      -10.00

2012-01-02 * A to B
    Assets:A                     -10.00
    Assets:B                      10.00

2012-01-03 * B partly to C
    Assets:B                      -5.00
    Assets:C                       5.00

2012-01-04 * Borrow
    Assets:A                      10.00
    Liabilities:A                -10.00

2012-01-05 * Return A
    Assets:A                     -10.00
    Liabilities:A                 10.00

test bal
                  10  Assets
                   5    B
                   5    C
                 -10  Equity:Opening balances
--------------------
                   0
end test

test bal -n
                  10  Assets
                 -10  Equity
--------------------
                   0
end test

test bal -n -E
                  10  Assets
                 -10  Equity
                   0  Liabilities
--------------------
                   0
end test

test bal -E
                  10  Assets
                   0    A
                   5    B
                   5    C
                 -10  Equity:Opening balances
                   0  Liabilities:A
--------------------
                   0
end test

test bal --flat
                   5  Assets:B
                   5  Assets:C
                 -10  Equity:Opening balances
--------------------
                   0
end test

test bal --flat -E
                   0  Assets:A
                   5  Assets:B
                   5  Assets:C
                 -10  Equity:Opening balances
                   0  Liabilities:A
--------------------
                   0
end test

test bal -E --flat --no-total
                   0  Assets:A
                   5  Assets:B
                   5  Assets:C
                 -10  Equity:Opening balances
                   0  Liabilities:A
end test

test bal -n --flat
end test