After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 513829 - Investment account may be created with Stock account type
Investment account may be created with Stock account type
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Import - QIF
2.2.x
Other All
: Normal normal
: ---
Assigned To: Derek Atkins
Derek Atkins
Depends on:
Blocks: backport
 
 
Reported: 2008-02-02 03:52 UTC by Charles Day
Modified: 2018-06-29 22:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
QIF file demonstrating the bug (168 bytes, text/plain)
2008-02-02 03:56 UTC, Charles Day
  Details
Proposed patch (7.60 KB, patch)
2008-02-02 22:32 UTC, Charles Day
committed Details | Review

Description Charles Day 2008-02-02 03:52:19 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:
Comment 1 Charles Day 2008-02-02 03:56:02 UTC
Created attachment 104242 [details]
QIF file demonstrating the bug
Comment 2 Charles Day 2008-02-02 22:32:18 UTC
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.
Comment 3 Charles Day 2008-02-21 05:31:12 UTC
Committed as r16947. Waiting for backport to 2.2.4.
Comment 4 Andreas Köhler 2008-02-28 22:24:11 UTC
Committed to branches/2.2 as r16966 for GnuCash 2.2.4.
Thanks a lot!
Comment 5 John Ralls 2018-06-29 22:00:32 UTC
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.