OrderCanceler

Extends

package

Default

Methods

assertCancelReturnedAllowed

assertCancelReturnedAllowed(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem $returnShipmentItem, integer $quantity) 
Throws
\Shopware\Plugins\ViisonPickwareERP\Components\Cancellation\CancellationException

Arguments

$quantity

integer

assertCancelUnshippedAllowed

assertCancelUnshippedAllowed(\Shopware\Models\Order\Detail $orderDetail, integer $quantity) 
Throws
\Shopware\Plugins\ViisonPickwareERP\Components\Cancellation\CancellationException

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) 
Throws
\Shopware\Plugins\ViisonPickwareERP\Components\Cancellation\CancellationException

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) 
Throws
\Shopware\Plugins\ViisonPickwareERP\Components\Cancellation\CancellationException

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) 

Arguments

$order

\Shopware\Models\Order\Order

getMaxCancelReturned

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

getMaxCancelUnshipped

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

Arguments

$orderDetail

\Shopware\Models\Order\Detail

Response

integer

isCancelReturnedAllowed

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

Arguments

$quantity

integer

Response

boolean

isCancelUnshippedAllowed

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

Arguments

$orderDetail

\Shopware\Models\Order\Detail

$quantity

integer

Response

boolean