Sfoglia il codice sorgente

Prix TTC : 2 chiffres après la vrigule

refactoring
Guillaume Bourgeois 2 anni fa
parent
commit
827443e297
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

@@ -61,7 +61,7 @@ class Price
$priceWithoutTax = self::round($priceWithoutTax);
$vat = self::getVat($priceWithoutTax, $taxRate, $taxCalculationMethod);

return $priceWithoutTax + $vat;
return self::numberTwoDecimals(self::round($priceWithoutTax + $vat));
}

public static function getVat($priceTotalWithoutTax, $taxRate, $taxCalculationMethod = Document::TAX_CALCULATION_METHOD_DEFAULT)

Loading…
Annulla
Salva