713-a.test 1.2 KB

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