I *think*[1] that if 60 HOOL is all you have in that account it should
match the total number of units in account1, and it would automatically
fill in the cost basis in account2.

[1] It's been a while, adding a unit test specifically for this case in the
matching code might make sense to validate in an isolated way.

On Thu, Dec 21, 2023 at 8:29 PM Artur Matos <[email protected]> wrote:

> Hi everyone,
>
> I've changed one of my taxable accounts providers and need to transfer the
> assets from one beancount account to the other. Transfer happens "in
> specie" and I need to preserve the cost basis and lots as part of the
> transfer. If I understood the docs correctly , transferring like this won't
> work and will remove the lots from the new account:
>
> 2015-05-15 * "Transfer" Assets:InvestAccount1 -60 HOOL {} 
> Assets:InvestAccount2
> 60 HOOL {}
>
> Is there a shorthand way to transfer the assets while preserving lot
> information? I've had the original account for rather long and doing it lot
> by lot will be very tedious.
>
> Thanks.
>
> --
> 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/48984991-9622-49cf-9c54-b98f70ac1518n%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/48984991-9622-49cf-9c54-b98f70ac1518n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAK21%2BhMa9QL9yYES-vcZ6m9FYQgxXfJg-4x34Jw9of1jbmc1Ww%40mail.gmail.com.

Reply via email to