ReturnShipmentProcessor

Extends

package

Default

Methods

createReturnShipment

createReturnShipment(\Shopware\Models\Order\Order $order) : \Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipment
Throws
\Shopware\Plugins\ViisonCommon\Classes\Exceptions\NumberRangeNotFoundException

Arguments

$order

\Shopware\Models\Order\Order

Response

\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipment

isReturnedAndWrittenOffQuantityAllowed

isReturnedAndWrittenOffQuantityAllowed(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem $returnShipmentItem, integer $newReturnedQuantity, integer $newWrittenOffQuantity) : boolean

Arguments

$newReturnedQuantity

integer

New returnedQuantity value

$newWrittenOffQuantity

integer

New writtenOffQuantity value

Response

boolean

safelyDeleteReturnShipment

safelyDeleteReturnShipment(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipment $returnShipment) 

safelyDeleteReturnShipmentItem

safelyDeleteReturnShipmentItem(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem $returnShipmentItem) 

updateAccumulatedReturnShipmentStatus

updateAccumulatedReturnShipmentStatus(\Shopware\Models\Order\Order $order) 

Arguments

$order

\Shopware\Models\Order\Order

Write stock entries for the changes made to ReturnShipmentItem $item to the database.

writeStockEntriesForItemChangesOnBinLocation(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem $item, \Shopware\CustomModels\ViisonPickwareERP\Warehouse\BinLocation $binLocation) 

Write stock entries for the changes made to ReturnShipmentItem $item to the database.

writeStockEntriesForItemChangesWithAutomaticBinLocationSelection(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem $item)