Integrate phib patch

[ compiere-Bugs-1497275 ] Import negative numbers
https://sourceforge.net/tracker/?func=detail&atid=410215&aid=1497275&group_id=29057
This commit is contained in:
Carlos Ruiz 2007-03-30 23:04:26 +00:00
parent 1f6a5ab0b7
commit dab25826f1
1 changed files with 2 additions and 2 deletions

View File

@ -476,11 +476,11 @@ public final class ImpFormatRow
if (hasComma && m_decimalPoint.equals(","))
info = info.replace(',', '.');
// remove everything but digits & '.'
// remove everything but digits & '.' & '-'
char[] charArray = info.toCharArray();
StringBuffer sb = new StringBuffer();
for (int i = 0; i < charArray.length; i++)
if (Character.isDigit(charArray[i]) || charArray[i] == '.')
if (Character.isDigit(charArray[i]) || charArray[i] == '.' || charArray[i] == '-')
sb.append(charArray[i]);
if (sb.length() == 0)