Properties

$name

$name : 

Type

$active

$active : boolean

Type

boolean — active state

$deleted

$deleted : 

Type

$date_add

$date_add : string

Type

string — Object creation date

$date_upd

$date_upd : string

Type

string — Object last modification date

$definition

$definition : 

Type

$webserviceParameters

$webserviceParameters : 

Type

$_taxes

$_taxes : 

Type

Methods

update()

update(  $null_values = false) 

Parameters

$null_values

historize()

historize(\TaxRulesGroup  $tax_rules_group) 

Save the object with the field deleted to true

@return bool

Parameters

\TaxRulesGroup $tax_rules_group

getIdTaxRuleGroupFromHistorizedId()

getIdTaxRuleGroupFromHistorizedId(  $id_tax_rule) 

Parameters

$id_tax_rule

getTaxRulesGroups()

getTaxRulesGroups(  $only_active = true) 

Parameters

$only_active

getTaxRulesGroupsForOptions()

getTaxRulesGroupsForOptions() : array

Returns

array —

an array of tax rules group formatted as $id => $name

delete()

delete() 

getAssociatedTaxRatesByIdCountry()

getAssociatedTaxRatesByIdCountry(  $id_country) : array

Parameters

$id_country

Returns

array

getIdByName()

getIdByName(  $name) : integer

Returns the tax rules group id corresponding to the name

Parameters

$name

Returns

integer —

id of the tax rules

hasUniqueTaxRuleForCountry()

hasUniqueTaxRuleForCountry(  $id_country,   $id_state,   $id_tax_rule = false) 

Parameters

$id_country
$id_state
$id_tax_rule

isUsed()

isUsed() 

getTaxesRate()

getTaxesRate(  $id_tax_rules_group,   $id_country,   $id_state,   $zipcode) 

Parameters

$id_tax_rules_group
$id_country
$id_state
$zipcode

getTaxes()

getTaxes(  $id_tax_rules_group,   $id_country,   $id_state,   $id_county) 

Return taxes associated to this para

Parameters

$id_tax_rules_group
$id_country
$id_state
$id_county