Calculate the VAT based on the net price, country code and indication if the
customer is a company or not.
public calculate ( integer | float $netPrice, null | string $countryCode = null, null | string $postalCode = null, null | boolean $company = null ) : float | ||
$netPrice | integer | float | The net price to use for the calculation |
$countryCode | null | string | The country code to use for the rate lookup |
$postalCode | null | string | The postal code to use for the rate exception lookup |
$company | null | boolean | |
Результат | float |