Package DE_EPAGES::Shop::API::Address
This module includes a function to update VATID
@EXPORT_OK |
Functions
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 ); |
Input |
|
Return |
|
IsTaxModelNet
Checks the address on the basis of countryid and vatid to be net.
Syntax |
my $IsNet = IsTaxModelNet( $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 |
|