Fixes Issue 0022750: Wrong behaviour when you filter an amount in grid view
authorShankar Balachandran <shankar.balachandran@openbravo.com>
Fri, 18 Jan 2013 09:18:50 +0530
changeset 19253 91afe03823f7
parent 19252 f7418ea442bd
child 19254 79162c26cf1a
Fixes Issue 0022750: Wrong behaviour when you filter an amount in grid view

Modified the parameters of OB.Utilities.Number.JSToOBMasked to pick up format from OB.Format instead of the current type.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js	Fri Jan 18 08:40:09 2013 +0530
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js	Fri Jan 18 09:18:50 2013 +0530
@@ -590,7 +590,7 @@
     }
     if (!isc.isA.String(value)) {
       // on purpose no grouping symbol
-      return OB.Utilities.Number.JSToOBMasked(value, type.maskNumeric, type.decSeparator, null, type.groupInterval);
+      return OB.Utilities.Number.JSToOBMasked(value, OB.Format.defaultNumericMask, OB.Format.defaultDecimalSymbol, OB.Format.defaultGroupingSymbol, OB.Format.defaultGroupingSize);
     }
     return value;
   },