IDEMPIERE-766 Product Info Window - incorrectly displaying price. Fixed wrong display format for double and float datatype.

This commit is contained in:
Heng Sin Low 2013-03-19 16:08:15 +08:00
parent 969ba70fe1
commit 2cab3c4c33
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ public class WListItemRenderer implements ListitemRenderer<Object>, EventListene
} }
else else
{ {
DecimalFormat format = field instanceof BigDecimal DecimalFormat format = (field instanceof BigDecimal || field instanceof Double || field instanceof Float)
? DisplayType.getNumberFormat(DisplayType.Amount, AEnv.getLanguage(Env.getCtx())) ? DisplayType.getNumberFormat(DisplayType.Amount, AEnv.getLanguage(Env.getCtx()))
: DisplayType.getNumberFormat(DisplayType.Integer, AEnv.getLanguage(Env.getCtx())); : DisplayType.getNumberFormat(DisplayType.Integer, AEnv.getLanguage(Env.getCtx()));