Package DE_EPAGES::Shop::API::Address
This module includes a function to update VATID
@EXPORT_OK |
Functions
CheckStringVATID
returns 1 if vatid contains not only " " and "-" returns 0 if vatid contain only " " and "-"
Syntax |
$check = CheckStringVATID( $VATID ); |
Example |
$check = CheckStringVATID( '118541153' ); |
Input |
|
Return |
|
CheckVATID
returns 1 if country is not eu country returns 1 if VATID is valid returns -1 if CountryID and country VATID not same returns 0 if VATID is not valid
Syntax |
$check = CheckVATID( $VATID, $CountryID, $Shop ); |
Input |
|
Return |
|
GetTaxCountryIDForShop
Returns the CountryID for the given shop by the shop address.
Syntax |
my $CountryID = GetTaxCountryIDForShop( $Shop )); |
Input |
|
Return |
|
IsEUAddress
Checks the address on the basis of countryid and zip code exceptions to be a EU Address
Syntax |
my $IsEUAddress = IsEUAddress( $Address ); |
Input |
|
Return |
|
IsTaxModelNet
Checks the address on the basis of shop, countryid and vatid to be net.
Syntax |
my $IsNet = IsTaxModelNet( $Shop, $Address ); |
Input |
|
Return |
|
UpdateVATID
Adds the country code to the VATID if $CountryID is defined and the country is a member of the European Union.
Syntax |
$VATID = UpdateVATID( $VATID, $CountryID, $Shop ); |
Example |
$VATID = UpdateVATID( '118541153', 276, $Shop ); |
Input |
|
Return |
|