Browse Source

TVA : calculs des arrondis

refactoring
Guillaume Bourgeois 4 years ago
parent
commit
d956aea3a6
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      common/helpers/Price.php
  2. +1
    -1
      common/web/js/utils.js

+ 1
- 1
common/helpers/Price.php View 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 View 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…
Cancel
Save