Selaa lähdekoodia

TVA : calculs des arrondis

dev
Guillaume Bourgeois 5 vuotta sitten
vanhempi
commit
d956aea3a6
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +1
    -1
      common/helpers/Price.php
  2. +1
    -1
      common/web/js/utils.js

+ 1
- 1
common/helpers/Price.php Näytä tiedosto

@@ -58,7 +58,7 @@ class Price

public static function numberTwoDecimals($number)
{
return number_format(((int) ($number * 100)) / 100, 2) ;
return number_format(( ($number * 100)) / 100, 2) ;
}

}

+ 1
- 1
common/web/js/utils.js Näytä tiedosto

@@ -25,7 +25,7 @@ function getPriceWithTax(priceWithoutTax, taxRate) {
}

function numberTwoDecimals(num) {
return (parseInt((num * 100)) / 100).toFixed(2) ;
return Number(num).toFixed(2) ;
}

/**

Loading…
Peruuta
Tallenna