ePages 6.17.40 - DE_EPAGES/Customer/API/User.pm

Package DE_EPAGES::Customer::API::User

This package provides user functions.

@EXPORT_OK
UpdateCustomerTaxModel

Functions

UpdateCustomerTaxModel

UpdateCustomerTaxModel

Updates the tax model of the customer based on the user billing address. Set tax model to net, when country of billing address in eu and vatid is valid. Set the container TaxModel to gross is shop is VAT released.

Syntax
UpdateCustomerTaxModel($User, $Shop);
Input
$User (object)
user
$Shop (object)
shop
Return
$NewTaxModel (int)
new tax model if tax model was changed, otherwise undef