summaryrefslogtreecommitdiff
path: root/test/baseline/opt-average-lot-prices.test
blob: c9fe4846271a8b3aa325d7bacd56ea96f251b5f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2019-01-01 * Opening balance
    Assets:Investments              1000.00 EUR
    Equity:Opening balance         -1000.00 EUR

2019-03-01 * Bought FOO
    Assets:Investments       2 FOO @ 150.00 EUR
    Assets:Investments              -300.00 EUR

2019-06-01 * Bought FOO
    Assets:Investments       1 FOO @ 180.00 EUR
    Assets:Investments              -180.00 EUR

test bal assets:investments --average-lot-prices
          520.00 EUR
  3 FOO {160.00 EUR}  Assets:Investments
end test