Capital gain on investment is not calculated - Bug Revisited

Just an FYI in case it helps someone else, there was a previous post that was closed located at:

Harry_Shen in Nov '22 wrote:

it seems a bug, Capital gain on investment is not calculated after sale the investment when a investment is belong to a investment CONTROL ACCOUNT. it will calculate the capital gain if you remove the investment item from control account.

It was then marked:

Solved by lubos:

Should be fixed in the latest version (

Just an FYI, as of version the bug still remains. However, I have a workaround if you are experiencing this problem. In the “Investment” tab, click “New Investment”, name it “Bug Placeholder” (or whatever you want), leave the “Control account” field blank and everything else blank. Save it. That should fix it. It appears that you just need SOMETHING to generate the top level “Investments” account… which can then generate the Control Accounts underneath it.