Fixes wrong number formatting for 0
authorIván Perdomo <ivan.perdomo@openbravo.com>
Thu, 30 Dec 2010 19:27:09 +0100
changeset 9505 84bccb79d739
parent 9504 7cae10b1b544
child 9506 cfca6a9741cb
Fixes wrong number formatting for 0
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js	Thu Dec 30 18:15:28 2010 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js	Thu Dec 30 19:27:09 2010 +0100
@@ -761,7 +761,7 @@
 // Return:
 // * The OB formatted number.
 OB.Utilities.Number.JSToOBMasked = function(number, maskNumeric, decSeparator, groupSeparator, groupInterval){
-  if (!number) {
+  if (typeof number !== 'number') {
     return '';
   }
   var formattedNumber = number;