OrderCancelerService

Implements \Shopware\Plugins\ViisonPickwareERP\Components\Cancellation\OrderCanceler, \Enlight_Hook

package

Default

Methods

__construct

__construct(\Shopware\Components\Model\ModelManager $entityManager, \Shopware\Plugins\ViisonPickwareERP\Components\OrderDetailQuantityCalculator\OrderDetailQuantityCalculator $orderDetailQuantityCalculator) 

Arguments

$entityManager

\Shopware\Components\Model\ModelManager

assertCancelReturnedAllowed

assertCancelReturnedAllowed(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem $returnShipmentItem, integer $quantity) 
inheritdoc

Arguments

$quantity

integer

assertCancelUnshippedAllowed

assertCancelUnshippedAllowed(\Shopware\Models\Order\Detail $orderDetail, integer $quantity) 
inheritdoc

Arguments

$orderDetail

\Shopware\Models\Order\Detail

$quantity

integer

Performs a cancellation for an order detail item that is remaining to ship (neither shipped, nor returned).

cancelRemainingQuantityToShipOfOrderDetail(\Shopware\Models\Order\Detail $orderDetail, integer $quantity) 
inheritdoc

Arguments

$orderDetail

\Shopware\Models\Order\Detail

$quantity

integer

Positive integer if you want to create a cancellation, negative if you want to revert one

Performs a cancellation for a return shipment item.

cancelReturnedQuantityOfReturnShipmentItem(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem $returnShipmentItem, integer $quantity) 
inheritdoc

Arguments

$quantity

integer

Positive integer if you want to create a cancellation, negative if you want to revert one

cancelShippingCostsOfOrder

cancelShippingCostsOfOrder(\Shopware\Models\Order\Order $order) 
inheritdoc

Arguments

$order

\Shopware\Models\Order\Order

getMaxCancelReturned

getMaxCancelReturned(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem $returnShipmentItem) : integer
inheritdoc

Arguments

Response

integer

getMaxCancelUnshipped

getMaxCancelUnshipped(\Shopware\Models\Order\Detail $orderDetail) : integer
inheritdoc

Arguments

$orderDetail

\Shopware\Models\Order\Detail

Response

integer

isCancelReturnedAllowed

isCancelReturnedAllowed(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem $returnShipmentItem, integer $quantity) : boolean
inheritdoc

Arguments

$quantity

integer

Response

boolean

isCancelUnshippedAllowed

isCancelUnshippedAllowed(\Shopware\Models\Order\Detail $orderDetail, integer $quantity) : boolean
inheritdoc

Arguments

$orderDetail

\Shopware\Models\Order\Detail

$quantity

integer

Response

boolean