sale of stock - transaction posts incorrectly

Derek Atkins warlord at MIT.EDU
Wed Apr 10 11:39:31 EDT 2013


Keith Bellairs <keith at> writes:

> Parent accounts are
> 1 Asset (top-level asset-type CAD)
>     1.4 Investments (child account asset-type CAD)
>         1.4.4 <mutual fund> (child account stock-type mutual-fund security, no
> currency but it is a USD priced commodity)

This is your problem!  The parent account of your fund account MUST have
the currency in which your fund is priced.  In this case your fund is
priced in USD but its parent is CAD.  That's your problem.  You need to
restructure your accounts so that you have:

  1 Asset (CAD)
  __ 1.4 Investments (CAD)
  ____ 1.4.4 Investment USD (USD)
  ______1.4.4.1 <mutual fund>

> For fun I changed the currency of "Investments" to USD, but <mutual fund>
> continues to be broken. I have a variety of accounts with USD or CAD
> currencies. My "default currency" is CAD.

Define "continues to be broken"?  Yes, anything that currently exists
will still be broken after this change.  But if you created a new
transaction from scratch (i.e. it didn't autocomplete) then it should

> There are other children of Investments that are asset accounts with names
> like <broker name> and then stocks beneath them. They seem to all post
> correctly.

Probably because the broker-name accounts have the correct currencies
for the underlying funds.

> KB


> On Tue, Apr 9, 2013 at 10:51 AM, Derek Atkins <warlord at> wrote:
>     Hi,
>     What are the parent accounts of these two securities?  In particular
>     what are the parent account type(s) and account currency?
>     -derek
>     --
>            Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>            Member, MIT Student Information Processing Board  (SIPB)
>            URL:    PP-ASEL-IA     N1NWH
>            warlord at MIT.EDU                        PGP key available

       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-devel mailing list