# HG changeset patch
# User Ranjith S R <ranjith@qualiantech.com>
# Date 1572519829 -19800
#      Thu Oct 31 16:33:49 2019 +0530
# Node ID 4a6f13ab6b5eb60d0c938231179673d73c6ef94e
# Parent  716a390b8188eaf8d3ad4ec5ef46b0e5aa5b4b1c
Related to issue 42141 19Q3 : Added Scale param to OB.DEC.number function

diff -r 716a390b8188 -r 4a6f13ab6b5e web/org.openbravo.mobile.core/source/utils/ob-arithmetic.js
--- a/web/org.openbravo.mobile.core/source/utils/ob-arithmetic.js	Wed Aug 21 05:44:08 2019 +0000
+++ b/web/org.openbravo.mobile.core/source/utils/ob-arithmetic.js	Thu Oct 31 16:33:49 2019 +0530
@@ -74,8 +74,8 @@
     return toBigDecimal(a).compareTo(BigDecimal.prototype.ZERO);
   };
 
-  OB.DEC.number = function(jsnumber) {
-    return jsnumber ? toNumber(toBigDecimal(jsnumber)) : jsnumber;
+  OB.DEC.number = function(jsnumber, arg_scale) {
+    return jsnumber ? toNumber(toBigDecimal(jsnumber), arg_scale) : jsnumber;
   };
 
   OB.DEC.setContext = function(s, r) {
