GNOME Bugzilla – Bug 513829
Investment account may be created with Stock account type
Last modified: 2018-06-29 22:00:32 UTC
Please describe the problem: Investment accounts should always be created using a "Bank" account type, with the securities held in subaccounts. However, in some situations the QIF importer incorrectly creates the investment account with a "Stock" account type instead. Steps to reproduce: 1. Run gnucash --nofile 2. Begin importing the attached QIF file, which contains a single BuyX transaction. 3. Finish the import by clicking Forward through the druid, accepting the defaults at each step. Actual results: The investment account ("MyBroker") has a "Stock" account type. So does the subaccount ("Citibank"). Expected results: The investment account ("MyBroker") has a "Bank" account type, and the subaccount ("Citibank") has a "Stock" account type. Does this happen every time? Yes. Other information:
Created attachment 104242 [details] QIF file demonstrating the bug
Created attachment 104281 [details] [review] Proposed patch This patch fixes the bug by not allowing currency-denominated accounts to be created with stock or mutual fund account types.
Committed as r16947. Waiting for backport to 2.2.4.
Committed to branches/2.2 as r16966 for GnuCash 2.2.4. Thanks a lot!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=513829. Please update any external references or bookmarks.