Here's how you do this right now:

2017-06-06 * "Transfer"
    Assets:A       -5 IBM { 5 CHF}
    Assets:A       -2 IBM { 7 CHF}
    Assets:B        5 IBM { 5 CHF}
    Assets:B        2 IBM { 7 CHF}

Of course you don't fetch all the numbers manually, you get them through an
SQL query.
These are infrequent in my usage, so I haven't created a syntax for it.
If you have these frequently, you could define a custom directive in a
plugin.





On Tue, Dec 19, 2017 at 2:28 PM, 'Patrick Ruckstuhl' via Beancount <
[email protected]> wrote:

> Hi,
>
> Is there a way to do a depository transfer/moving stocks between
> accounts which keeps the cost/lot information on the positions?
>
> Right now the only way I found it would be to do this manually. As I
> have a huge number of lots this would be very painful.
>
> Example:
>
> 2017-01-02 * "Buy"
>
>     Assets:A        5 IBM { 5 CHF}
>
>     Assets:CHF    25 CHF
>
>
> 2017-04-05 * "Buy"
>
>     Assets:A        2 IBM { 7 CHF}
>
>     Assets:CHF    14 CHF
>
>
> 2017-06-06 * "Transfer"
>
>     Assets:A        -7 IBM
>
>     Assets:B        5 IBM { 5 CHF}
>
>     Assets:B        2 IBM { 7 CHF}
>
>
> Thanks and Regards,
> Patrick
>
> --
> 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/803ba27b-bb67-7c6a-a62f-29beb1e42c4a%40ch.tario.org.
> 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%2BhM4LrCEk_ETAhN7mjv4O3V0S1n2FZMrsdzQyyp5Yx%2BgRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to