|
|
|
|
|
|
|
|
$priceWithoutTax = self::round($priceWithoutTax); |
|
|
$priceWithoutTax = self::round($priceWithoutTax); |
|
|
$vat = self::getVat($priceWithoutTax, $taxRate, $taxCalculationMethod); |
|
|
$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) |
|
|
public static function getVat($priceTotalWithoutTax, $taxRate, $taxCalculationMethod = Document::TAX_CALCULATION_METHOD_DEFAULT) |