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)
Arguments
$entityManager
\Shopware\Components\Model\ModelManager
$numberRangeIncrementer
\Shopware\Components\NumberRangeIncrementerInterface
createReturnShipment
createReturnShipment(\Shopware\Models\Order\Order $order) : \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)
This method is idempotent.
Arguments
Write stock entries for the changes made to ReturnShipmentItem $item to the database.
writeStockEntriesForItemChangesWithAutomaticBinLocationSelection(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem $item)
This method is idempotent.
Arguments
Constants