Package DE_EPAGES::Order::API::OrderDocument
object interface for Order Documents.
@EXPORT_OK |
Functions
- CreateCustomerInformationPDF
- CreateOrderDocument
- CreateShippingLabel
- GetCustomerInformationPDFAttachment
- GetCustomerInformationPDFFileName
- GetCustomerInformationPDFLocation
- GetCustomerInformationPDFWebFileName
CreateCustomerInformationPDF
Creates a new customer information PDF in the given language.
Syntax |
CreateCustomerInformationPDF($CustomerInformation, $LanguageID); |
Input |
|
Return |
|
CreateOrderDocument
Creates a new packing slip object for the given Order object.
Syntax |
$Document = CreateOrderDocument( $Order, $DocumentTypeName, $DocumentTypePlural); $Document = CreateOrderDocument( $Order, $DocumentTypeName, $DocumentTypePlural, $hOptions ); |
Example |
my $Invoice = CreateOrderDocument($Order, 'Invoice', 'Invoices'); my $Invoice = CreateOrderDocument( $Order, 'Invoice, 'Invoices', { 'DeliveryDate' => $DeliveryDate, 'IssueDate' => $IssueDate } ); |
Input |
|
Return |
|
CreateShippingLabel
Creates a new shipping label object for the given Order object ( if the order has assigned a ShippingFulfillmentMethod )
Syntax |
$Label = CreateShippingLabel( $Order); |
Example |
my $Label = CreateShippingLabel($Order); |
Input |
|
Return |
|
GetCustomerInformationPDFAttachment
Returns the PDF full filename to use as mail attachment. Creates a new customer information PDF if it wasn't created yet.
Syntax |
GetCustomerInformationPDFAttachment($Shop, $LanguageID); |
Input |
|
Return |
|
GetCustomerInformationPDFFileName
Returns the PDF full filename.
Syntax |
GetCustomerInformationPDFFileName($Shop, $LanguageID); |
Input |
|
Return |
|
GetCustomerInformationPDFLocation
Returns the folder which contains the generated PDFs. Each resides in a language folder, which is added during creation.
Syntax |
GetCustomerInformationPDFLocation($Shop); |
Input |
|
Return |
|
GetCustomerInformationPDFWebFileName
Returns the PDF web filename (including shop URL).
Syntax |
GetCustomerInformationPDFWebFileName($Shop, $LanguageID); |
Input |
|
Return |
|