Hi, Martin. I really appreciate all the work you've done with the documentation. Might I suggest a brief section on stock options? I'm trying to do this, and it isn't quite working:
2000-01-01 open Assets:Cash USD
2000-01-01 open Expenses:Tax USD
2001-01-01 open Assets:Investments:Options:Grant123:ABC ABC
2001-01-01 open Income:Options:Grant123:ABC ABC
2001-01-01 open Income:Options:Grant123:PnL USD
2002-01-01 * "Stock Option Vesting"
Assets:Investments:Options:Grant123:ABC 10 ABC {1.00 USD}
Income:Options:Grant123:ABC
2002-06-01 * "Same-Day Sale"
Assets:Investments:Options:Grant123:ABC -10 ABC {1.00 USD} @ 2.00 USD
Income:Options:Grant123:PnL
; Verify we got the full grant.
2003-01-01 balance Income:Options:Grant123:ABC -10 ABC
2003-01-01 close Income:Options:Grant123:ABC
2003-01-01 close Income:Options:Grant123:PnL
; Verify we exercised everything before it expired.
2003-01-01 balance Assets:Investments:Options:Grant123:ABC 0 ABC
2003-01-01 close Assets:Investments:Options:Grant123:ABC
(In a real-world example, there'd be vesting events every quarter or every month, which is why I want to verify the balance of the income account at the end.) In the vesting transaction in particular, it complains that I'm taking USD from an income account that is declared to have only ABC.