From 2cab3c4c33181da5ea39d4f11f0f6a30b388b23d Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 19 Mar 2013 16:08:15 +0800 Subject: [PATCH] IDEMPIERE-766 Product Info Window - incorrectly displaying price. Fixed wrong display format for double and float datatype. --- .../src/org/adempiere/webui/component/WListItemRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListItemRenderer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListItemRenderer.java index 0c9f9825ff..6b0d0a3a06 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListItemRenderer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WListItemRenderer.java @@ -254,7 +254,7 @@ public class WListItemRenderer implements ListitemRenderer, 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()));