[GNC] How do I add stock trades?
Adrien Monteleone
adrien.monteleone at lusfiber.net
Sat May 2 22:29:18 EDT 2020
An even more thorough explanation and understanding.
Thanks John!
Regards,
Adrien
> On May 2, 2020 w18d123, at 5:11 PM, John Ralls <jralls at ceridwen.us> wrote:
>
> Not quite right. While it's correct that in GnuCash's code a currency is a commodity with a special namespace, and that an account has only one commodity member variable, it's not quite right about a non-currency commodity account not having a currency.
>
> Remember that a split has two commodity fields, amount and value, and that transactions have a transaction currency field. It's called transaction currency because it *must* be a currency, and it's the currency in which all of the value fields are denominated.
>
> If you begin a transaction in an account register whose commodity is non-currency GnuCash will look up the hierarchy until it finds a parent account in currency and use the first one it finds for the transaction currency. It does the same in reports, in the Accounts page, and in the summary bar when applying prices from the pricedb. That currency of the first parent account with a currency for its commodity is sometime referred to in the documentation as that child account's currency.
>
> Regards,
> John Ralls
>
>> On May 2, 2020, at 10:16 AM, Adrien Monteleone <adrien.monteleone at lusfiber.net> wrote:
>>
>> Yes, I misspoke. Thank you. Technically it is denominated in itself. And technical accuracy is no minor point, especially with accounting, and leads to clearer understanding.
>>
>> Regards,
>> Adrien
More information about the gnucash-user
mailing list