Bug 309855

Summary: Invalid Import Result
Product: [Applications] kmymoney Reporter: allan <agander93>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal CC: lukasz.wojnilowicz, onet.cristian
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.0
Attachments: Screenshot after import to equity account.
CSV investment file used to demonstrate the problem.

Description allan 2012-11-10 12:30:55 UTC
Normally, I have 'Show equity accounts' unchecked, but after difficulty deleting a transaction, I had left it checked.
While doing some testing, I was importing an investment file, and all went as normal until I was presented with the KMM Account Selection dialog.  This showed the investment account as usual, but also the equity accounts.  A little non-plussed by this, I selected the equity account, and the import proceeded apparenrly correctly, until I opened the investment account.
The correct number of transactions were present, the dates were correct, as were the security name, the quantity and the balance.  However, the same activity type was repeated for each item, the price contained the symbol and 1.000000, and the value was the symbol followed by 0.000.
This was using the CSV plugin, but exactly the same happened with a QIF file.


Reproducible: Always

Steps to Reproduce:
1. In the configuration, select  'Show equity accounts'.
2. Import an investment file.
3. When the KMM Account Selection dialog appears, select the equity account rather than the investment account.
4. Proceed with the import.
Actual Results:  
The correct number of transactions were present, the dates were correct, as were the security name, the quantity and the balance.  However, the same activity type was repeated for each item, the price contained the symbol and 1.000000, and the value was the symbol followed by 0.000.


Expected Results:  
The KMM Account Selection dialog should not give the user the opportunity to import into an incorrect acount type.  It should show only investment accounts.
Comment 1 Cristian OneČ› 2015-04-08 07:54:40 UTC
Allan, this issue didn't see any activity since 2012, could you attach at least a test investment file which can be imported to reproduce this issue?
Comment 2 allan 2015-04-08 10:23:35 UTC
Created attachment 91940 [details]
Screenshot after import to equity account.

Investment file to follow - it's just one picked at random.
Comment 3 allan 2015-04-08 10:33:00 UTC
Created attachment 91941 [details]
CSV investment file used to demonstrate the problem.

Configure display of equity accounts.
Import into stock/equity account instead of investment account.

Presumably, there is no valid reason for the equity accounts to be offered as an import choice?