From: Vincent Vanwaelscappel Date: Thu, 19 Jul 2018 15:53:35 +0000 (+0200) Subject: wip #2150 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8fdfd8dec6bf69b164ad9fae02bf510f4c360c30;p=fluidbook-html5.git wip #2150 @0.5 --- diff --git a/js/libs/fluidbook/cart/fluidbook.cart.remarkable.js b/js/libs/fluidbook/cart/fluidbook.cart.remarkable.js index 2340a1cf..82131ef6 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.remarkable.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.remarkable.js @@ -166,19 +166,19 @@ FluidbookCartRemarkable.prototype = { var totalttc = 0; this.data.find('item').each(function () { var ref = $(this).find('reference').text(); - var unit = parseFloat($(this).find('prix_unitaire').text()); + var unit = $this.parseFloat($(this).find('prix_unitaire').text()); var remise = 0; if ($(this).find('valeur_remise').length > 0) { - remise = parseFloat($(this).find('valeur_remise').text()); + remise = $this.parseFloat($(this).find('valeur_remise').text()); } unit -= remise; - var ht = parseFloat($(this).find('prix_total_article').text()); - var ttc = ht * (1 + (parseFloat($(this).find('taux_tva').text())) / 100); + var ht = $this.parseFloat($(this).find('prix_total_article').text()); + var ttc = ht * (1 + ($this.parseFloat($(this).find('taux_tva').text())) / 100); content += ''; content += '' + $(this).find('designation').text() + '
Prix unitaire : ' + $this.formatPrice(unit, 'HT'); content += '
Prix HT : ' + $this.formatPrice(ht, 'HT') + '
Prix TTC : ' + $this.formatPrice(ttc, 'TTC') + '
'; - content += ''; + content += ''; content += '' + $this.formatPrice(unit, 'HT') + ''; content += '' + $this.formatPrice(ht, 'HT') + ''; content += '' + $this.formatPrice(ttc, 'TTC') + ''; @@ -189,7 +189,7 @@ FluidbookCartRemarkable.prototype = { totalttc += ttc; }); - var fp = parseFloat(this.data.find('frais_port').text()); + var fp = this.parseFloat(this.data.find('frais_port').text()); if (fp === 0) { fp = this.data.find('total_frais_port').text(); } else { @@ -198,11 +198,11 @@ FluidbookCartRemarkable.prototype = { content += ''; content += ''; - content += ''; + content += ''; content += ''; - content += ''; + content += ''; content += ''; - content += ''; + content += ''; content += '
Total HT' + $this.formatPrice(parseFloat(this.data.find('prix_sous_total').text()), 'HT') + '
Total HT' + $this.formatPrice(this.parseFloat(this.data.find('prix_sous_total').text()), 'HT') + '
Frais de port' + fp + '
TVA' + $this.formatPrice(parseFloat(this.data.find('total_tva_commande_ht').text())) + '
TVA' + $this.formatPrice(this.parseFloat(this.data.find('total_tva_commande_ht').text())) + '
Total TTC' + $this.formatPrice(parseFloat(this.data.find('total').text()), 'TTC') + '
Total TTC' + $this.formatPrice(this.parseFloat(this.data.find('total').text()), 'TTC') + '
'; content += '