AbstractStockChangeList

internal
package

Default

Methods

__construct

__construct(array<mixed,\Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockChangeList\BinLocationStockChange> $changes) 
Throws
\InvalidArgumentException

Arguments

getBinLocationStockChanges

getBinLocationStockChanges() : array<mixed,\Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockChangeList\BinLocationStockChange>

getChangedLocations

getChangedLocations() : array<mixed,\Shopware\CustomModels\ViisonPickwareERP\Warehouse\BinLocation>

getChangedWarehouse

getChangedWarehouse() : \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse

getStockChangeForLocation

getStockChangeForLocation(\Shopware\CustomModels\ViisonPickwareERP\Warehouse\BinLocation $binLocation) : \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockChangeList\BinLocationStockChange|null

getTotalStockChange

getTotalStockChange() : integer

Response

integer

Generates a new change list of the same class as this list, by reducing the total stock change of this list by the given $delta. The total stock change of the new list equals the given $delta and contains only as many changed bin locations as necessary to achieve this reduction.

reduceAbsoluteTotalStockChange(integer $delta) : self
Throws
\InvalidArgumentException

Arguments

$delta

integer

Response

self