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



public static function numberTwoDecimals($number) 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

} }


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


/** /**

Loading…
Cancel
Save