Browse Source

TVA : correction problème calcul HT / TTC

dev
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



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


public static function numberTwoDecimals($number) public static function numberTwoDecimals($number)

Loading…
Cancel
Save