Bug 296676 - CSV Plugin can produce an incorrect amount if the wrong column is chosen
Summary: CSV Plugin can produce an incorrect amount if the wrong column is chosen
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-24 11:23 UTC by allan
Modified: 2012-03-28 11:35 UTC (History)
0 users

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


Attachments

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