StockUpdater

Extends

package

Default

Methods

recordArticleDetailStockChange

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

Arguments

$articleDetail

\Shopware\Models\Article\Detail

$stockChanges

$user

\Shopware\Models\User\User|null

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|null $user = null) : array<mixed,\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry>

Arguments

$articleDetail

\Shopware\Models\Article\Detail

$orderDetail

\Shopware\Models\Order\Detail

$user

\Shopware\Models\User\User|null

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|null $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|null $user = null) : array<mixed,\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry>