IDEMPIERE-3972 Core problems with big numbers

This commit is contained in:
Carlos Ruiz 2019-05-18 12:55:57 +02:00
parent ba13d8584e
commit d2fc1f0d57
2 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ public class MStatusLine extends X_AD_StatusLine
Format fmt = fmts[idx];
Object obj;
if (fmt instanceof DecimalFormat || fmt instanceof ChoiceFormat) {
obj = rs.getDouble(idx+1);
obj = rs.getBigDecimal(idx+1);
} else if (fmt instanceof SimpleDateFormat) {
obj = rs.getTimestamp(idx+1);
} else {

View File

@ -288,7 +288,7 @@ public class WListItemRenderer implements ListitemRenderer<Object>, EventListene
}
else
{
listcell.setLabel(format.format(((Number)field).doubleValue()));
listcell.setLabel(format.format(field));
ZkCssHelper.appendStyle(listcell, "text-align: right");
}
}