]> _ Git - fluidbook-html5.git/commitdiff
wip #2258 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Sep 2018 14:14:56 +0000 (16:14 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Sep 2018 14:14:56 +0000 (16:14 +0200)
js/libs/fluidbook/special/wescosales.js

index c8eff7b96ad8eab5336e9f45e04d3d880500d18f..d51fe8bd6f057950619455098583c8573cfffd4b 100644 (file)
@@ -2,7 +2,7 @@ var wsref = {};
 var normalizeRefCache = {};
 
 $(function () {
-    if(fluidbook.datas.basket) {
+    if (fluidbook.datas.basket) {
         $(fluidbook).on('fluidbookready', initWesco);
         $(fluidbook).on('fluidbooknavready', initWescoNav);
         $(fluidbook).on('fluidbook.links.ready', wescoLinksReady);
@@ -229,8 +229,8 @@ function getWescoRef(ref) {
                     }
 
                     if (line0[i + 1] != undefined && line0[i].indexOf('Qté') == 0 && line0[i + 1].toString().indexOf('CA ' + colTitle) != -1) {
-                        qte = parseInt(line[i]).toLocaleString();
-                        ca = Math.round(parseFloat(line[i + 1])).toLocaleString();
+                        qte = line[i];
+                        ca = line[i + 1];
                         hasCA = true;
                     }
                     d.push([colTitle, qte, ca]);