ePages 6.10 - DE_EPAGES/Tax/API/TLE/TaxMatrixHandler.pm

Package DE_EPAGES::Tax::API::TLE::TaxMatrixHandler

Implements TLE functions for tax matrix

Functions

RegisterHandlerProc
TaxAreasByCountryID
TaxRateForDefaultTaxArea
new
register

RegisterHandlerProc

this function registers this attribute handle on the processor via hook function on hook TLEProcessorRegistration

Syntax
$RegisterHandlerProc( $hParams );
Input
$hParams (ref.hash)
hook arguments keys :
  • Processor - tle processor - object

TaxAreasByCountryID

Returns the TaxArea for a given countryid

Syntax
#FUNCTION("TaxAreasByCountryID", #TaxMatrix, #CountryID)
Input
#TaxMatrix (object)
taxmatrix object
#CountryID (int)
country id

TaxRateForDefaultTaxArea

Returns the tax rate for the tax class in default tax area of shop

Syntax
#FUNCTION("TaxRateForDefaultTaxArea", #Shop.Object, #TaxClass.Object)
Input
#Shop (object)
shop
#TaxClass (object)
tax class

new

create a new handler

Syntax
$Handler = new DE_EPAGES::Tax::API::TLE::TaxMatrixHandler;
Example
my $PrefixHandler  = new DE_EPAGES::Tax::API::TLE::TaxMatrixHandler;
Return
$Handler (object)
blessed object

register

this function register this handle on the processor

Syntax
$Handler->register( $Processor );
Input
$Processor (object)
tle processor