Package DE_EPAGES::Order::API::OrderDocument
object interface for Order Documents.
@EXPORT_OK |
Functions
- CreateLegalDocumentPDF
- CreateOrderDocument
- CreateShippingLabel
- GetCustomerInformationPDFAttachment
- GetLegalDocumentPDFAttachment
- GetLegalDocumentPDFFileName
- GetLegalDocumentPDFLocation
- GetLegalDocumentPDFWebFileName
- SetOrderChangeLastUpdatedOn
CreateLegalDocumentPDF
Creates a new legal document PDF in the given language.
Syntax |
CreateLegalDocumentPDF($Shop, $LegalDocument, $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 |
|
GetLegalDocumentPDFAttachment
Returns the PDF full filename to use as mail attachment. Creates a new legal document PDF if it wasn't created yet.
Syntax |
GetLegalDocumentPDFAttachment($Shop, $LanguageID, $LegalDocument); |
Input |
|
Return |
|
GetLegalDocumentPDFFileName
Returns the PDF full filename.
Syntax |
GetLegalDocumentPDFFileName($Shop, $LanguageID, $LegalDocument); |
Input |
|
Return |
|
GetLegalDocumentPDFLocation
Returns the folder which contains the generated PDFs. Each resides in a language folder, which is added during creation.
Syntax |
GetLegalDocumentPDFLocation($Shop, $LegalDocument); |
Input |
|
Return |
|
GetLegalDocumentPDFWebFileName
Returns the PDF web filename (including shop URL).
Syntax |
GetLegalDocumentPDFWebFileName($Shop, $LanguageID, $LegalDocument); |
Input |
|
Return |
|
SetOrderChangeLastUpdatedOn
Updates the timestamp of Order in LastUpdate SQL Table using as objectId the OrderId and profileId OrderChange
Syntax |
SetOrderChangeLastUpdatedOn( $Order ); |
Input |
|