Sfoglia il codice sorgente

TVA : calculs des arrondis

refactoring
parent
commit
d956aea3a6
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      common/helpers/Price.php
  2. +1
    -1
      common/web/js/utils.js

+ 1
- 1
common/helpers/Price.php Vedi File

@@ -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 Vedi File

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

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

/**

Loading…
Annulla
Salva