ePages 7.0.0 - DE_EPAGES/Envialia/API/Tools.pm

Package DE_EPAGES::Envialia::API::Tools

This package provides the Envialia global functionality.

@EXPORT_OK
GetLabelImagePath
AreMandatoryShippingFieldsSet

Functions

AreMandatoryShippingFieldsSet
GetLabelImagePath

AreMandatoryShippingFieldsSet

checks all required fields are mandatory in the shop

Syntax
$IsAllowed = AreMandatoryShippingFieldsSet($Shop);
Example
my $IsAllowed  = AreMandatoryShippingFieldsSet($Shop);
Input
#Shop (object)
shop object
Return
#Value (boolean)
1 or 0

GetLabelImagePath

returns the path for the barcode image of a shipping label

Syntax
$Path = GetLabelImagePath($ShippingLabel,$FileExtension);
Example
my $Path  = GetLabelImagePath($ShippingLabel,'gif');
Input
#ShippingLabel (object)
shipping label object
#FileExtension (string)
image file extension
Return
#Path (string)
path and image name