PickListDocumentCreationService

Implements \Shopware\Plugins\ViisonPickwareERP\Components\Document\PickListDocumentCreation, \Enlight_Hook

package

Default

Methods

__construct

__construct(\Shopware_Components_Snippet_Manager $entityManager,  $snippetManager, \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockChangeList\StockChangeListFactory $stockChangeListFactory) 

Arguments

$entityManager

\Shopware_Components_Snippet_Manager

$snippetManager

Replaces the template variables with preview data for a demo pick list document for the given $document. Use this method when handling a pick list preview document which naturally lacks the relevant demo data.

createPickListDocumentTemplatePreviewVariables(\Shopware_Components_Document $document) : array
inheritdoc

Arguments

$document

\Shopware_Components_Document

Response

array

Replaces the positions in the passed `$templateVariables` with instructions for picking the relevant order items and adds all other variables that are required by a pick list document (e.g. warehouse and bin locations) to the template variables, which are finally returned.

createPickListDocumentTemplateVariables(array $templateVariables, \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse) : array
inheritdoc

Arguments

$templateVariables

array

Response

array