summaryrefslogtreecommitdiff
path: root/test/regress/C0212EAC.test
blob: e77107d76054c860b0f78ad9e1ab1bca5bbd5d9e (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
2007-01-01 Opening balances
  Assets:Cash         10.00 EUR
  Equity:Opening balances

2008-01-01 Buy 5.00 GBP
  Assets:Cash               5.00 GBP @ 1.4 EUR
  Assets:Checking

2009-01-01 Sell 5.00 GBP for 7.50 EUR that I bought for 7.00 EUR
 Assets:Cash                       -5.00 GBP {=1.4 EUR} @ 1.5 EUR
 Assets:Checking                     7.50 EUR
 Income:Gain

P 2009-02-01 00:00:00 GBP 1.5 EUR

test reg
07-Jan-01 Opening balances      Assets:Cash               10.00 EUR    10.00 EUR
                                Equit:Opening balances   -10.00 EUR            0
08-Jan-01 Buy 5.00 GBP          Assets:Cash                5.00 GBP     5.00 GBP
                                Assets:Checking           -7.00 EUR    -7.00 EUR
                                                                        5.00 GBP
09-Jan-01 Sell 5.00 GBP for 7.. Assets:Cash            -5.00 GBP {=1.40 EUR}    -7.00 EUR
                                                                        5.00 GBP
                                                           -5.00 GBP {=1.40 EUR}
                                Assets:Checking            7.50 EUR     0.50 EUR
                                                                        5.00 GBP
                                                           -5.00 GBP {=1.40 EUR}
                                Income:Gain               -0.50 EUR     5.00 GBP
                                                           -5.00 GBP {=1.40 EUR}
end test