StockItemUpdater

Extends

package

Default

Methods

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<mixed,array> $propertyValues) : array<mixed,\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockItem>
Throws
\OverflowException

If the number of given $propertyValues exceeds the remaining quantity of the stock entry that is not assigned stock entry items yet.

Arguments

$propertyValues

array<mixed,array>

Response

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

canAddStockItems

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

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) 

Arguments

$propertyValues

array