On 26/11/2020 00.23, James Cook wrote:

To be clear, I feel this is no longer a problem for me. I wrote a
plugin that does things the way I like, whether or not it's the most
sensible.

Awesome!  If you can share the code, I'd love to take a look.


Still, I'm curious what you mean. What you're saying sounds a bit like
the following transaction, which I included in my original email; is
that what you had in mind? (What "zero value" is being offset?)

2001-01-01 * "Income is in currency, silly"
   Income:Stock-as-cad                           -100 CAD
   Assets:Brokerage                                 1 ACME
   Equity:Trade

(Note I've made the decision to use an explicit trading account, for
better or for worse.)

Like so:

/At grant time:/

2018-01-15 * "Grant XXXX"

    Income:Hooli:Grants                         -1695 HOOL.UNVEST

    Assets:Unvested:Hooli:XXXX                   1695 HOOL.UNVEST

/At vest time:/

2018-07-15 * "Release event from grant XXXX"

    Assets:Unvested:Hooli:XXXX                   -212 HOOL.UNVEST

    Expenses:Vested:Hooli                         212 HOOL.UNVEST

    Assets:Investments:Traditional:E-TRADE:Lot1               212 HOOL {191.33 
USD}

    Assets:Investments:Traditional:E-TRADE:Lot1               -83 HOOL {191.33 
USD}

    Income:Hooli:RSUs                          -40561.96 USD

    Income:Investments:Dividends:HOOL-releases   -288.32 USD

    Expenses:Taxes:TY2018:Income                13333.53 USD

    Expenses:Taxes:TY2018:Pension                2835.18 USD

/At sale time:/

2020-03-10 * "Close position HOOL at 280.49 USD"

  Assets:Investments:Traditional:E-TRADE:Cash         280.49 USD

  Assets:Investments:Traditional:E-TRADE:Cash          -1.01 USD

  Expenses:Financial:Trading-fees                       1.01 USD

  Assets:Investments:Traditional:E-TRADE:Lot1          -1 HOOL {191.33 USD, 
2018-07-05} @ 280.49 USD

  Income:Realized-gains:Traditional:E-TRADE          (191.33 - 280.49) USD


By the way, I would like to mention that being able to put mathematical expressions in the transactions is a *huge* advantage of Beancount.

--
Rudd-O
    http://rudd-o.com/

--
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/2d433cec-9f4f-6c13-b2d3-c53738ff1cc0%40rudd-o.com.

Attachment: OpenPGP_0x5C06F67A8BDEBA09_and_old_rev.asc
Description: application/pgp-keys

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to