浏览代码

TVA : calculs des arrondis

refactoring
父节点
当前提交
d956aea3a6
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      common/helpers/Price.php
  2. +1
    -1
      common/web/js/utils.js

+ 1
- 1
common/helpers/Price.php 查看文件

@@ -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 查看文件

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

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

/**

正在加载...
取消
保存