> The plugin works by turning this:
>
> 2000-01-01 * "Buy"
> Assets:Chequing -100.00 USD
> Assets:Brokerage 5 ACME {20.00 USD}
>
> 2000-02-01 * "Sell"
> Assets:Chequing 200.00 USD
> Assets:Brokerage -5 ACME {20.00 USD} @ 40.00 USD
> Income:Capital-gains -100.00 USD
>
> into this:
>
> 2000-01-01 * "Buy"
> Assets:Chequing -100.00 USD
> Assets:Brokerage 5 ACME {20.00 USD}
> Assets:Par:ACME 5 PAR.ACME {20.00 PAR.USD}
> Equity:Par -100.00 PAR.USD
>
> 2000-02-01 * "Sell"
> Assets:Chequing 200.00 USD
> Assets:Brokerage -5 ACME {20.00 USD} @ 40.00 USD
> Income:Capital-gains -100.00 USD
> Assets:Par:ACME -5 PAR.ACME {20.00 PAR.USD} @ 40.00 PAR.USD
> Income:Par:Capital-gains -100.00 PAR.USD
> Equity:Par 200.00 PAR.USD
Er, that's not a very interesting example because the booking doesn't
change. But you can imagine the ACME.PAR postings will use average cost
booking. There are lots of examples in the _test.py.
--
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/20210427161114.sr375smd25xktll5%40moth.falsifian.org.