~ubuntu-branches/ubuntu/wily/ledger/wily

« back to all changes in this revision

Viewing changes to test/regress/713-a.test

  • Committer: Package Import Robot
  • Author(s): David Bremner
  • Date: 2014-10-08 19:20:38 UTC
  • mfrom: (1.1.3) (9.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20141008192038-py5cxm93rdt3x2uz
Tags: 3.1+dfsg1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
2011-01-01 * Opening balance
 
3
    Assets:Cash                               25.00 GBP
 
4
    Equity:Opening balance                   -25.00 GBP
 
5
 
 
6
2011-02-01 * Buy 1 AAA for 10.00 GBP
 
7
    Assets:Investments                 1 AAA {10.00 GBP}
 
8
    Assets:Cash                              -10.00 GBP
 
9
 
 
10
2011-03-07 * Sell one AAA with a gain
 
11
    Assets:Cash                               12.00 GBP
 
12
    Assets:Investments  -1 AAA {10.00 GBP} @@ 12.00 GBP
 
13
    Income:Capital gains                      -2.00 GBP
 
14
 
 
15
2011-04-01 * Buy 1 BBB for 15.00 GBP
 
16
    Assets:Investments                 1 BBB {15.00 GBP}
 
17
    Assets:Cash                              -15.00 GBP
 
18
 
 
19
test bal -B Assets:Investments -p "until 2011-02-20"
 
20
           10.00 GBP  Assets:Investments
 
21
end test
 
22
 
 
23
test bal -B Assets:Investments -p "until 2011-03-20"
 
24
end test
 
25
 
 
26
test bal -B Assets:Investments -p "until 2011-04-20"
 
27
           15.00 GBP  Assets:Investments
 
28
end test
 
29
 
 
30
test bal Assets:Investments -p "until 2011-02-20"
 
31
               1 AAA  Assets:Investments
 
32
end test
 
33
 
 
34
test bal Assets:Investments -p "until 2011-03-20"
 
35
end test
 
36
 
 
37
test bal Assets:Investments -p "until 2011-04-20"
 
38
               1 BBB  Assets:Investments
 
39
end test
 
40