Browse Source

TVA : correction problème calcul HT / TTC

refactoring
Guillaume Bourgeois 4 years ago
parent
commit
8c2c53ca09
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/helpers/Price.php

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

@@ -53,7 +53,7 @@ class Price

public static function getPriceWithTax($priceWithoutTax, $taxRate)
{
return floatval($priceWithoutTax) * ($taxRate + 1) ;
return self::numberTwoDecimals(floatval($priceWithoutTax) * ($taxRate + 1)) ;
}

public static function numberTwoDecimals($number)

Loading…
Cancel
Save