Author: jacopoc
Date: Sat Feb 27 08:29:21 2010
New Revision: 916925

URL: http://svn.apache.org/viewvc?rev=916925&view=rev
Log:
Added missing BigDecimal condition required to render the content of BigDecimal 
fields in the "view generic" screen. OFBIZ-3522

Modified:
    
ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy

Modified: 
ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy?rev=916925&r1=916924&r2=916925&view=diff
==============================================================================
--- 
ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy
 (original)
+++ 
ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy
 Sat Feb 27 08:29:21 2010
@@ -118,6 +118,8 @@
             fieldValue = 
UtilFormatOut.safeToString((Double)value.get(field.getName()));
         } else if (type.getJavaType().indexOf("Float") >= 0) {
             fieldValue = 
UtilFormatOut.safeToString((Float)value.get(field.getName()));
+        } else if (type.getJavaType().indexOf("BigDecimal") >= 0) {
+            fieldValue = 
UtilFormatOut.safeToString((BigDecimal)value.get(field.getName()));
         } else if (type.getJavaType().indexOf("String") >= 0) {
             fieldValue = 
UtilFormatOut.checkNull((String)value.get(field.getName()));
         }
@@ -276,6 +278,9 @@
     } else if (type.getJavaType().indexOf("Float") >= 0) {
         fieldValue = (value != null && useValue) ? 
UtilFormatOut.safeToString((Float)value.get(field.getName())):UtilFormatOut.checkNull(parameters.get(field.getName()));
         fieldType = "Float";
+    } else if (type.getJavaType().indexOf("BigDecimal") >= 0) {
+        fieldValue = (value != null && useValue) ? 
UtilFormatOut.safeToString((BigDecimal)value.get(field.getName())):UtilFormatOut.checkNull(parameters.get(field.getName()));
+        fieldType = "BigDecimal";
     } else if (type.getJavaType().indexOf("String") >= 0) {
         if (type.stringLength() <= 80) {
             fieldValue = (value != null && useValue) ? 
UtilFormatOut.checkNull((String)value.get(field.getName())):UtilFormatOut.checkNull(parameters.get(field.getName()));


Reply via email to