- Class name: TaxCalculatorCore
- Source: classes/tax/TaxCalculator.php line 32
const COMBINE_METHOD = 1
COMBINE_METHOD sum taxes eg: 100€ * (10% + 15%)
const ONE_AFTER_ANOTHER_METHOD = 2
ONE_AFTER_ANOTHER_METHOD apply taxes one after another eg: (100€ * 10%) * 15%
public integer $computation_method
- Visibility: public
- Source: classes/tax/TaxCalculator.php line 54.
public array $taxes
- Visibility: public
- Source: classes/tax/TaxCalculator.php line 49.
mixed TaxCalculatorCore::__construct(array $taxes, integer $computation_method)
- Visibility: public
- Source: classes/tax/TaxCalculator.php line 61
- $taxes array
- $computation_method integer - (COMBINE_METHOD | ONE_AFTER_ANOTHER_METHOD)
float TaxCalculatorCore::addTaxes($price_te)
Compute and add the taxes to the specified price
- Visibility: public
- Source: classes/tax/TaxCalculator.php line 78
- $price_te mixed
array TaxCalculatorCore::getTaxesAmount(float $price_te)
Return the tax amount associated to each taxes of the TaxCalculator
- Visibility: public
- Source: classes/tax/TaxCalculator.php line 136
- $price_te float
mixed TaxCalculatorCore::getTaxesName()
- Visibility: public
- Source: classes/tax/TaxCalculator.php line 119
float TaxCalculatorCore::getTotalRate()
- Visibility: public
- Source: classes/tax/TaxCalculator.php line 98
\price TaxCalculatorCore::removeTaxes($price_ti)
Compute and remove the taxes to the specified price
- Visibility: public
- Source: classes/tax/TaxCalculator.php line 90
- $price_ti mixed