From: Vincent Vanwaelscappel Date: Fri, 15 Oct 2021 14:41:49 +0000 (+0200) Subject: wait #4796 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=cf4e9aefdad1757ceca2d00e41a409536a2b346b;p=fluidbook-html5.git wait #4796 @1.5 --- diff --git a/js/libs/fluidbook/cart/fluidbook.cart.puma.js b/js/libs/fluidbook/cart/fluidbook.cart.puma.js index b9863e78..e317206f 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.puma.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.puma.js @@ -114,11 +114,11 @@ FluidbookCartPuma.prototype = { }, getColumns: function () { - return ['Image|onlyprint', 'Catalogue', 'Catégorie', 'Ligne', 'Sexe', 'Modèle', 'Couleur', 'Désignation', 'Tarif', 'PVC', 'Image|noprint', 'PACK']; + return ['Image|onlyprint', 'Catalogue', 'Catégorie', 'Ligne', 'Sexe', 'Modèle', 'Couleur', 'Désignation', 'Tailles', 'Tarif', 'PVC', 'Image|noprint', 'PACK']; }, getExcelColumns: function () { - return ['Image', 'Catalogue', 'Catégorie', 'Ligne', 'Sexe', 'Modèle', 'Couleur', 'Désignation', 'Tarif', 'PVC', 'PACK']; + return ['Image', 'Catalogue', 'Catégorie', 'Ligne', 'Sexe', 'Modèle', 'Couleur', 'Désignation', 'Tailles', 'Tarif', 'PVC', 'PACK']; }, @@ -172,8 +172,8 @@ FluidbookCartPuma.prototype = { value = '-'; } } - if(value==undefined || value==null || value=='null' || value=='undefined'){ - value='-'; + if (value == undefined || value == null || value == 'null' || value == 'undefined') { + value = '-'; } content += '' + value + ''; }); @@ -197,7 +197,7 @@ FluidbookCartPuma.prototype = { filename: this.getExportFileName() + '.pdf', image: {type: 'jpeg', quality: 0.98}, html2canvas: {dpi: 150, scale: 2, letterRendering: true}, - jsPDF: {unit: 'mm', format: 'A4', orientation: 'portrait'} + jsPDF: {unit: 'mm', format: 'A4', orientation: 'landscape'} }; $(element).addClass('print') html2pdf().set(options).from(element).save().then(function () { @@ -232,6 +232,7 @@ FluidbookCartPuma.prototype = { 'Modèle': 5, 'Couleur': 2, 'Désignation': 15, + 'Tailles': 5, 'Tarif': 3, 'PVC': 3, 'Image': 7, @@ -245,6 +246,7 @@ FluidbookCartPuma.prototype = { 'Modèle': '@', 'Couleur': '@', 'Désignation': '@', + 'Tailles': '@', 'Image': '@', 'Tarif': '# ##0.00 €;-# ##0.00 €', 'PVC': '# ##0.00 €;-# ##0.00 €', diff --git a/style/cart/puma.less b/style/cart/puma.less index d69d1bb6..51c047cf 100644 --- a/style/cart/puma.less +++ b/style/cart/puma.less @@ -82,7 +82,7 @@ td, th { vertical-align: top; - padding: 5px; + padding: 1px; &.onlyprint { display: table-cell;