]> _ Git - fluidbook-html5.git/commitdiff
wait #4796 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Oct 2021 14:41:49 +0000 (16:41 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Oct 2021 14:41:49 +0000 (16:41 +0200)
js/libs/fluidbook/cart/fluidbook.cart.puma.js
style/cart/puma.less

index b9863e780b81e0a0e0a034d161a094f01898bce1..e317206f602bea537dffd40aed81c54478be3b7c 100644 (file)
@@ -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 += '<td data-label="' + v + '"' + cls + '><span>' + value + '</span></td>';
             });
@@ -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 €',
index d69d1bb616fb5d3ee09565c267e59b7bcfe9df91..51c047cf346c0e9557da8e118d16708df0e917b0 100644 (file)
@@ -82,7 +82,7 @@
 
     td, th {
       vertical-align: top;
-      padding: 5px;
+      padding: 1px;
 
       &.onlyprint {
         display: table-cell;