It's not entirely obvious to make an export with lots of cost basis, but
essentially what you need to do to keep it simple is specify the cost basis
when you purchase and when you sell and ideally also the date. Note that
when you sell, the cost basis is the same as when you bought, it's not the
price (lots of examples in docs).  Another way to do it if you have all the
data in your exporter and you can pair up  buy / sell lots is to create a
unique lot label and use that to identify the lots when you sell, that
should work too.

Splits aren't handled implicitly. Beancount doesn't really provide any
solution for this. You can either just double / halve the values on the
date, or you can create a new currency to disambiguate them and make a
conversion. I'm not super happy about this, but it's not a huge blocker for
most people (including me). I think eventually some support for that could
be added to do that better (e.g. report over time without kinks in the
curves), but it's a bit of a rabbit hole.





On Fri, May 3, 2019 at 4:56 AM Alen Šiljak <[email protected]> wrote:

> I've added the {} syntax to the GnuCash export script but then ran into
> dozens of problems, which I'll need to resolve over the coming days.
>
> I.e. share transfers are now wrong. These records will need to be modified
> manually in order to preserve the original cost and date. GnuCash has a
> mechanism for splitting the transactions into lots but I find it more
> trouble than it's worth.
>
> Share splits also need to be adjusted manually. In GnuCash this is a
> simple position reduction. This will require lots of manual work in
> adjusting the cost for each position.
>
> I will also need to read more about how these are done in Beancount and
> eventually add to the docs based on the discussions in the group.
>
> --
> 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 post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/59bb2e86-bb11-47bc-baca-30e55dede0a3%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhPgWb7Y%3DpAigqsu087poc0u6rB_Wc%2BN6HEUsHUkUHnQRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to