Bug 296676

Summary: CSV Plugin can produce an incorrect amount if the wrong column is chosen
Product: [Applications] kmymoney Reporter: allan <agander93>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description allan 2012-03-24 11:23:19 UTC
On importing a csv file, an incorrect column was used for the 'amount' field, which in fact contained a string which included a couple of values.  The string was accepted, and the amount became the
concatenation of the two values, resulting in a huge value.

The plugin assumes an 'amount'-type field will actually contain a valid amount.
Comment 1 allan 2012-03-28 11:35:31 UTC
Git commit 58c920b2b5b68604b8ca8d3d0a867cb442906f9d by Allan Anderson.
Committed on 28/03/2012 at 12:48.
Pushed by allananderson into branch 'master'.
column is chosen.

Fix problem in InvestProcessing where UI did not respond correctly to
start/end line changes.

Fix problem in InvestProcessing where import did not complete if the user
started the wizard, chose a file, then or later returned to the start and
selected the same file again.

M  +84   -29   kmymoney/plugins/csvimport/csvdialog.cpp
M  +4    -4    kmymoney/plugins/csvimport/csvdialog.h
M  +15   -6    kmymoney/plugins/csvimport/investprocessing.cpp

http://commits.kde.org/kmymoney/58c920b2b5b68604b8ca8d3d0a867cb442906f9d