Sfoglia il codice sorgente

TVA : correction problème calcul HT / TTC

dev
parent
commit
8c2c53ca09
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      common/helpers/Price.php

+ 1
- 1
common/helpers/Price.php Vedi 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…
Annulla
Salva