]> _ Git - fluidbook-html5.git/commitdiff
Wait #5051 @1
authorStephen Cameron <stephen@cubedesigners.com>
Mon, 13 Jun 2022 16:46:12 +0000 (18:46 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Mon, 13 Jun 2022 16:46:12 +0000 (18:46 +0200)
js/libs/fluidbook/cart/fluidbook.cart.cfoc.js
style/cart/cfoc.less

index 8b9a2e4d39b7077efe0512551221b854f104347f..6ff3cabf50e3d09693385a1d4dca821bdf9e5575 100644 (file)
@@ -486,8 +486,8 @@ FluidbookCartCFOC.prototype = {
 
                 switch(key) {
                     case 'REF':
-                        output  = value;
-                        output += data['EXCLU'] ? '*' : ''; // Mark exclusive products with an asterisk
+                        output  = data['EXCLU'] ? '*' : ''; // Mark exclusive products with an asterisk
+                        output += value;
                         break;
                     case 'COULEUR':
                         var colours = $this.data[item.reference]; // Colour variations are stored as nested objects, grouped by reference
@@ -671,7 +671,7 @@ FluidbookCartCFOC.prototype = {
 
     // Calculate the Hors Tax amount based on the TTC amount
     calculateHT: function(TTC_value) {
-        return parseFloat(TTC_value) * 100 / (100 + this.TVA_percentage);
+        return this.parseFloat(TTC_value) * 100 / (100 + this.TVA_percentage);
     },
 
     cartTotalTTC: function() {
index f5bdad34b26afab3702733c5072ff959e4d5a8b2..8b0b2b4fe6a9a2fb53b8c242d4e8f94484e35224 100644 (file)
 
     // Collapse table cells and display header labels before items
     tbody td {
+      white-space: normal;
+
       @media @breakpoint_table {
         display: flex;
         align-items: center;
     background-color: transparent;
   }
 
-  [data-name="DESIGNATION"] {
-    white-space: normal; // Allow descriptions to wrap
-  }
-
   [data-name="QTE MINI"], [data-name="QTE"] {
     text-align: center !important;
   }
 
   [data-name="PRIX HT"], [data-name="PRIX TTC"] {
     text-align: right !important;
+    white-space: nowrap !important;
   }
 
   // Cart item delete buttons