Depository Transfer/Moving Stocks between accounts

38 views
Skip to first unread message

Patrick Ruckstuhl

unread,
Dec 19, 2017, 2:28:58 PM12/19/17
to bean...@googlegroups.com
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

Martin Blais

unread,
Dec 19, 2017, 2:39:35 PM12/19/17
to Beancount
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.






--
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+unsubscribe@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/803ba27b-bb67-7c6a-a62f-29beb1e42c4a%40ch.tario.org.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages