It's not the frequency, but the volume. A single event on a single fund can easily involve 240 lots, if one buys, say, a couple times a month for 10 years. Five such funds leads us to 1200 conversions, or 2400 postings.
I'll definitely be scripting this. My original question was to see if there are built in semantics I'm missing before I go off and script. Sounds like there isn't. On Thursday, July 4, 2019 at 6:31:39 AM UTC-7, Martin Blais wrote: > > I suppose in theory one could build a plugin that converts all units of a > particular commodity into another at a fixed rate and preserve the > acquisition dates, but really, how often do we need to do this? > Once every 3 years at best? > We probably spent more time on this email thread than you would in 10 > years worth of investing would cause in such conversions. > > It's only worth optimizing what's done frequently IMHO. > For now: > - Use bean-doctor context to get the contents of the account before the > transaction > - Copy paste a few numbers > > > On Thu, Jul 4, 2019 at 12:39 AM Red S <redst...@gmail.com <javascript:>> > wrote: > >> Right, but that's going to be the laborious brute force method, right? It >> would look like: >> 2011-01-01 * "Mutual fund exchange: upgrade share class" >> -33.234 ABC_COMMON {234.23 USD, 2017-10-01} @ 62.09 USD >> 4.123 ABC_PREMIUM {75.67 USD} >> -12.093 ABC_COMMON {345.23 USD, 2016-11-02} @ 62.09 USD >> 3.123 ABC_PREMIUM {90.67 USD} >> -75.234 ABC_COMMON {92.23 USD, 2011-2-02} @ 62.09 USD >> 8.123 ABC_PREMIUM {12.67 USD} >> ..... >> >> There are going to be two postings for each lot. That's a lot to type. >> Given there is a relationship between each pair, and an overall >> relationship, I was wondering if there was any easier way I'm misisng. >> >> >> >> On Monday, July 1, 2019 at 10:48:30 PM UTC-7, Martin Blais wrote: >>> >>> Use cost syntax on both legs: {...} not @@ >>> >>> >>> On Tue, Jul 2, 2019 at 1:35 AM Red S <redst...@gmail.com> wrote: >>> >>>> Existing mutual fund shares occasionally get converted to a different >>>> class of shares. The resulting class typically has a different NAV, so the >>>> transaction ends up looking like: >>>> >>>> 2011-01-01 * "Mutual fund exchange: upgrade share class" >>>> Assets:Investments:Taxable:Vanguard-Pre-75305462 -35.0101 >>>> ABC_COMMON @@ 123.45 USD >>>> Assets:Investments:Taxable:Vanguard-Pre-75305462 7.3242 >>>> ABC_PREMIUM @@ 123.45 USD >>>> >>>> However, the problem here is, cost bases for the lots that make up the >>>> 35.0101 ABC_COMMON shares is lost. How can this be avoided? >>>> >>>> The "brute force" method, of course, is to manually convert every lot >>>> that makes up ABC_COMMON individually to a corresponding ABC_PREMIUM lot. >>>> Is this problem common enough that there is a feature to do this >>>> automatically? If not, what is the least painful way to accomplish this? >>>> >>>> Thank you. >>>> >>>> -- >>>> 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 bean...@googlegroups.com. >>>> To post to this group, send email to bean...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/beancount/f5d0450c-6730-46bb-adbd-4fa8474b5099%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/beancount/f5d0450c-6730-46bb-adbd-4fa8474b5099%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> 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 bean...@googlegroups.com <javascript:>. >> To post to this group, send email to bean...@googlegroups.com >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/beancount/188b6459-b6b1-493f-91da-e1b038ad007f%40googlegroups.com >> >> <https://groups.google.com/d/msgid/beancount/188b6459-b6b1-493f-91da-e1b038ad007f%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> 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 beancount+unsubscr...@googlegroups.com. To post to this group, send email to beancount@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/7406112f-8886-45d8-af3d-086c209e2df5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.