ReturnShipmentProcessorService

Implements \Shopware\Plugins\ViisonPickwareERP\Components\ReturnShipment\ReturnShipmentProcessor, \Enlight_Hook

package

Default

Methods

__construct

__construct(\Shopware\Components\Model\ModelManager $entityManager, \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockUpdater $stockUpdater, \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockChangeList\StockChangeListFactory $stockChangeListFactory, \Shopware\Components\NumberRangeIncrementerInterface $numberRangeIncrementer, \Shopware\Plugins\ViisonPickwareERP\Components\Cancellation\OrderCanceler $orderCanceler, \Shopware\Plugins\ViisonPickwareERP\Components\OrderDetailQuantityCalculator\OrderDetailQuantityCalculator $orderDetailQuantityCalculator) 

createReturnShipment

createReturnShipment(\Shopware\Models\Order\Order $order) : \Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipment
inheritdoc

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
inheritdoc

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) 
inheritdoc

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) 

This method is idempotent.

inheritdoc

Arguments

Constants

NAME

NAME