From: Vincent Vanwaelscappel Date: Tue, 25 Oct 2022 16:29:39 +0000 (+0200) Subject: wip #5534 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c5234771ec95b3ae322c4bb8cbc860f708ae4f1d;p=fluidbook-html5.git wip #5534 @0.5 --- diff --git a/js/libs/fluidbook/cart/fluidbook.cart.puma.js b/js/libs/fluidbook/cart/fluidbook.cart.puma.js index 7011e5b9..923e3384 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.puma.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.puma.js @@ -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];