Bug 238167

Summary: incorrect values imported with illformed qif
Product: [Applications] kmymoney Reporter: allan <agander93>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description allan 2010-05-19 13:27:17 UTC
Version:           Version 3.98.0-svn1127006 (using KDE 4.3.5)
Installed from:    openSUSE RPMs

On importing a manufactured qif file with one entry ill-formed, the amounts from the other, correct, entries are multiplied by 100!!

Here's the qif file content.

!Type:Bank
D04/05/2010
P'UNITED UTIL PLC
T-15.54
MD/D
^
D11/05/2010
P'10MAY NET 27558355
T0.20
MINT
^
D11/05/2010
P'0318 05MAY10 
T FID
MPOS
^
The last entry has an incorrect amount field, but the other two entries are correct.  The -15.54 becomes -1554.00 and the 0.20 becomes 20.00.

It looks like there is incorrect validity checking in the amount field.

The same shows also in v1.03.
Comment 1 Thomas Baumgart 2010-06-01 10:14:57 UTC
SVN commit 1133151 by tbaumgart:

Only allow comma and dot as delimiters and separators during QIF import

BUG: 238167

 M  +5 -2      mymoneyqifprofile.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1133151