StockUpdaterService

Implements \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockUpdater, \Enlight_Hook

package

Default

Methods

__construct

__construct(\Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockLedgerService $stockLedgerService) 

recordArticleDetailStockChange

recordArticleDetailStockChange(\Shopware\Models\Article\Detail $articleDetail,  $stockChanges, \Shopware\Models\User\User $user = null) : array<mixed,\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry>
inheritdoc

Arguments

$articleDetail

\Shopware\Models\Article\Detail

$stockChanges

$user

\Shopware\Models\User\User

Response

array<mixed,\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry>

Creates one or more new stock entries for the managed article detail in the managed warehouse representing a change in the `$orderDetail`'s `shipped` quantity.

recordOrderDetailShippedChange(\Shopware\Models\Article\Detail $articleDetail, \Shopware\Models\Order\Detail $orderDetail, \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockChangeList\PositiveStockChangeList|\Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockChangeList\NegativeStockChangeList $stockChanges, \Shopware\Models\User\User $user = null) : array<mixed,\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry>
inheritdoc

Arguments

$articleDetail

\Shopware\Models\Article\Detail

$orderDetail

\Shopware\Models\Order\Detail

$user

\Shopware\Models\User\User

Response

array<mixed,\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry>

recordReturnShipmentItemReturnedChange

recordReturnShipmentItemReturnedChange(\Shopware\Models\Article\Detail $articleDetail, \Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem $returnShipmentItem, \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockChangeList\PositiveStockChangeList|\Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockChangeList\NegativeStockChangeList $stockChanges, \Shopware\Models\User\User $user = null) : array<mixed,\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry>

recordReturnShipmentItemWriteOffChange

recordReturnShipmentItemWriteOffChange(\Shopware\Models\Article\Detail $articleDetail, \Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem $returnShipmentItem, \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockChangeList\PositiveStockChangeList|\Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockChangeList\NegativeStockChangeList $stockChanges, \Shopware\Models\User\User $user = null) : array<mixed,\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry>