StockItemUpdaterService

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

package

Default

Methods

__construct

__construct(\Shopware\Components\Model\ModelManager $entityManager, \Psr\Log\LoggerInterface $logger) 

Arguments

$entityManager

\Shopware\Components\Model\ModelManager

$logger

\Psr\Log\LoggerInterface

Creates a new StockItem for the given $stockEntry and assigns all given $propertyValues.

addStockItem(\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry $stockEntry, array $propertyValues = array()) : \Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockItem

Adds all given $propertyValues to the given $stockEntry by creating as many stock entry items as necessary before assigning the values. Finally the created stock entry items are returned.

addStockItemsWithProperties(\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry $stockEntry, array $propertyValues) : array<mixed,\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockItem>

canAddStockItems

canAddStockItems(\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry $stockEntry, integer $quantity) : boolean
inheritdoc

Arguments

$quantity

integer

Response

boolean

Adds all given $propertyValues to the given $stockEntryItem by either creating new or updating existing stock entry item property for all given values.

updateStockItemPropertyValues(\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockItem $stockEntryItem, array $propertyValues) 
inheritdoc

Arguments

$propertyValues

array