Bug 309855 - Invalid Import Result
Summary: Invalid Import Result
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-10 12:30 UTC by allan
Modified: 2018-03-28 07:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.0
Sentry Crash Report:


Attachments
Screenshot after import to equity account. (21.56 KB, image/png)
2015-04-08 10:23 UTC, allan
Details
CSV investment file used to demonstrate the problem. (825 bytes, text/csv)
2015-04-08 10:33 UTC, allan
Details

Note You need to log in before you can comment on or make changes to this bug.
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?