[GNC] currency of "value" in stock account

Derek Atkins derek at ihtfp.com
Tue Nov 9 07:31:08 EST 2021


Hi,

On Tue, November 9, 2021 6:41 am, Lionel Élie Mamane wrote:
> I setup a security.
> I create an account of type "Stock" that uses that security, let's say
> assets:investments:foobar
> I open the register for that account
>
> To enter an operation, in column "shares", I enter the number of
> shares. That's clear.
>
> Now, there are columns "price" (which is per-share-price), and columns
> "buy" and "sell" which are the total price of the transaction. What is
> not clear to me, is what currency are these columns in? I didn't make
> a choice for that, and it doesn't seem to be indicated on screen.

It is the currency of the parent account.  So in this case it would be the
currency of Assets:Investments.

> There seems to something strange going on, because I enter, in basic
> ledger mode, say:
>
> Date: 09/11/21
> Memo: test purchase
> account: assets:current assets:some bank account
> shares: 5
> Price: 21
>
> then I press tab/tab/tab to validate the entry and go to the next
> line. The "Buy" column is computed and filled in automatically. So far
> so good.
>
> But in the "assets:current assets:some bank account" ledger,
> both splits of that transaction have an empty amount :-|

Let me guess -- Assets:Current Assets:Some Bank Account uses a different
currency than Assets:Investments, right?

> In assets:investments:foobar, the bank account split has (when I show
> the splits) a "Tot Sell" of 105, that is the 5*21 that I entered.
>
> Thanks in advance for your explanations,
>
> Lionel

> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

-derek

-- 
       Derek Atkins                 617-623-3745
       derek at ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant



More information about the gnucash-user mailing list