]> _ Git - fluidbook-html5.git/commitdiff
wip #5534 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 25 Oct 2022 16:29:39 +0000 (18:29 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 25 Oct 2022 16:29:43 +0000 (18:29 +0200)
js/libs/fluidbook/cart/fluidbook.cart.puma.js

index 7011e5b94f03db570e3885dfba2262568bb239b5..923e3384f0fea0110fe3b75e5403e78271ce3fae 100644 (file)
@@ -240,7 +240,7 @@ FluidbookCartPuma.prototype = {
             {state: 'frozen', xSplit: 0, ySplit: 1, topLeftCell: 'A2', activeCell: 'A2'}
         ];
         sheet.properties.defaultRowHeight = 15;
-        var columnsLabels = ['Reference', 'Size Description', 'EAN13', 'Season Description', 'Rbu', 'Family', 'Article', 'Model Id', 'Color Id'];
+        var columnsLabels = ['Reference', 'Size Description', 'EAN13', 'Season Description', 'Rbu', 'Family', 'Article', 'Model Id', 'Color Id', 'Units'];
         var columns = [];
 
         $.each(columnsLabels, function (k, v) {
@@ -259,7 +259,9 @@ FluidbookCartPuma.prototype = {
                 if (v.Reference === ref) {
                     var row = {};
                     $.each(columnsLabels, function (kk, vv) {
-                        if (vv === 'Reference') {
+                        if (vv === 'Units') {
+                            row[vv] = 1;
+                        } else if (vv === 'Reference') {
                             row[vv] = v[vv].replace(/\s+/g, '-');
                         } else {
                             row[vv] = v[vv];