On Thu, 26 Nov 2020 at 19:41, Manuel Amador (Rudd-O) <[email protected]>
wrote:

> 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.
>
Oh, that was at the bottom of my October 6 email:
https://hub.darcs.net/falsifian/misc-pub/browse/beancount_plugins/falsifian/alt_value.py

On October 6 I was actually just replying to my own much earlier (May 27)
email.

However I just noticed that I missed a reply (Jul 25) from Martin in the
meantime; oops.

Anyway, I don't know if anyone will find the code useful. It's supposed to
be a generic mechanism for managing different "points of view" where you
can specify how a transaction looks from different points of view.

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}
>
> Interesting... can I infer from "Holi:XXXX" and "E-TRADE:Lot1" that you
make a different account under Unvested for each grant, and a different
account under e-TRADE for each release?

Did the -83 HOOL get sold for tax withholding?


>     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
>
> This is probably more sensible than what I'm doing, at the very least in
the sense that it's less likely to confuse someone reading it later (myself
included).


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

James

-- 
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/CAHpmPOAbOVxqbiBndQvvS2a76bEvf_RbLXC9KjA0cFEWEiHmuA%40mail.gmail.com.

Reply via email to