IDEMPIERE-766 Product Info Window - incorrectly displaying price. Fixed wrong display format for double and float datatype.
This commit is contained in:
parent
969ba70fe1
commit
2cab3c4c33
|
@ -254,7 +254,7 @@ public class WListItemRenderer implements ListitemRenderer<Object>, EventListene
|
|||
}
|
||||
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.Integer, AEnv.getLanguage(Env.getCtx()));
|
||||
|
||||
|
|
Loading…
Reference in New Issue