OrderDocumentCreationServiceDecoration

package

Default

Methods

createOrderCancellationDocument

createOrderCancellationDocument(\Shopware\Models\Order\Order $order, \Shopware\Models\Document\Document $documentType, array $positions, string $invoiceNumber, string $comment, string $dateString, boolean $cancelShippingCost) : \Shopware\Models\Order\Document\Document
see \Shopware\Plugins\ViisonPickwareERP\Components\Document\OrderDocumentCreation::createOrderCancellationDocument()

Arguments

$order

\Shopware\Models\Order\Order

$documentType

\Shopware\Models\Document\Document

$positions

array

$invoiceNumber

string

$comment

string

$dateString

string

$cancelShippingCost

boolean

Response

\Shopware\Models\Order\Document\Document

createOrderDocument

createOrderDocument(\Shopware\Models\Order\Order $order, \Shopware\Models\Document\Document $documentType, array $documentConfig = array()) : \Shopware\Models\Order\Document\Document
see \Shopware\Plugins\ViisonPickwareERP\Components\Document\OrderDocumentCreation::createOrderDocument()

Arguments

$order

\Shopware\Models\Order\Order

$documentType

\Shopware\Models\Document\Document

$documentConfig

array

Response

\Shopware\Models\Order\Document\Document

showOrderCancellationDocumentPreview

showOrderCancellationDocumentPreview(\Shopware\Models\Order\Order $order, \Shopware\Models\Document\Document $documentType, array $positions, string $invoiceNumber, string $comment, string|null $dateString, boolean $cancelShippingCost) 
see \Shopware\Plugins\ViisonPickwareERP\Components\Document\OrderDocumentCreation::showOrderCancellationDocumentPreview()

Arguments

$order

\Shopware\Models\Order\Order

$documentType

\Shopware\Models\Document\Document

$positions

array

$invoiceNumber

string

$comment

string

$dateString

string|null

A formatted date string for the invoice. If null, today's date is used.

$cancelShippingCost

boolean