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:
parent
1f6a5ab0b7
commit
dab25826f1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue