* Alen Šiljak <[email protected]> [2019-04-17 06:33]:
> One simple follow-up question - if I don't know the price (5 USD in
> this case), does it matter which numbers I use? What are the
> consequences?
Unfortunately ledger won't calculate everything for you. You could
build some kind of solution on top which generates proper ledger
entries.
> Effectively, the example below reprices my shares (which happens
> during a share split or the opposite) while, in reality, I'm just
> getting a sum back and it may not have direct effects on the share
> price.
You have to differentiate between the share price (on what market) and
your cost basis. When you get money back, your cost basis will go
down. Where else should that money come from otherwise?
Anyway, if you just know you get XXX money, and you know how much you
paid originally (1000) and how many shares you own (100), you could do:
2019-04-01 * Return of capital
Assets:Investments:Broker:Cash XXXX USD
Assets:Investments:Broker:Shares:IPE 100 IPE {{1000-XXXX USD}
[2000-01-01] @@ (1000-XXXX) USD
Assets:Investments:Broker:Shares:IPE -100 IPE {{1000 USD} [2000-01-01] @@
(1000-XXXX) USD
But again, ledger won't calculate this for you.
--
Martin Michlmayr
https://www.cyrius.com/
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.