[GNC] Tutorial for moving stock between accounts?

Fred Bone Fred.Bone at dial.pipex.com
Thu Jan 3 04:23:00 EST 2019


On Wednesday, January 2, 2019 at 5:58, Jon Leech said:

> On Wed, Jan 02, 2019 at 05:38:13PM +0530, D wrote:
> > Jon,
> >
> > I can't test this right now, since I'm not at my machine...
> >
> > Try this:
> >
> > Open your source account.
> >
> > Move to the entry point in the register.
> >
> > Click the 'Split' button. Enter your description.
> >
> > Tab to the Shares field in the first split and type -13.
> >
> > Tab to the price field and type 0.
> >
> > Now, use **tab** to move to the Transfer field on the second line, set
> > it to your destination account and tab to shares and type 13.
> >
> > Does that work?
> 
>     Thanks! This works, for the most part. The share counts in source and
> destination accounts are altered correctly, which is enough to let me do
> what I need. It does set a Price of 1 for the second line and a Tot Buy of
> 13.00, and then creates a new Imbalance line in the split with a Tot Sell
> of 13.00.
> 
>     I cannot change the Price to 0 on the second line, unlike the first.
> Trying it results in it immediately being restored to 1, so the Imbalance
> seems unavoidable. I can set the Price to a non-zero number and make
> gnucash recalculate the Tot Buy / Imbalance fields, but that seems
> pointless, since there is no actual Price or cash associated with this
> transaction.

Oh yes there is.

If you started with 100 shares and transferred 50 from A to B, the 
account wiith A is now worth half what it was and the account with B is 
worth the other half. If you don't tell Gnucash what the transfer value 
is, you can't expect it to make the relevant calculations when the time 
comes (e.g. you sell one and want to know your capital gain).



More information about the gnucash-user mailing list