WarehouseRepository

Extends \Shopware\Components\Model\ModelRepository

package

Default

Methods

Returns all BinLocation entities for the given $articleDetail in the given $warehouse. The results are sorted by the mapping's 'defaultMapping' flag (DESC) and the bin location's 'code' (ASC).

findAllBinLocations(\Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse, \Shopware\Models\Article\Detail $articleDetail) : array<mixed,\Shopware\CustomModels\ViisonPickwareERP\Warehouse\BinLocation>

Arguments

$articleDetail

\Shopware\Models\Article\Detail

Response

array<mixed,\Shopware\CustomModels\ViisonPickwareERP\Warehouse\BinLocation>

Fetches and returns the ArticleDetailBinLocationMapping for a particular ArticleDetail in a particular BinLocation.

findArticleDetailBinLocationMapping(\Shopware\Models\Article\Detail $articleDetail, \Shopware\CustomModels\ViisonPickwareERP\Warehouse\BinLocation $binLocation, integer $hydrationMode = \Doctrine\ORM\AbstractQuery::HYDRATE_OBJECT) : \Shopware\CustomModels\ViisonPickwareERP\Warehouse\ArticleDetailBinLocationMapping|null

Arguments

$articleDetail

\Shopware\Models\Article\Detail

$hydrationMode

integer

Response

\Shopware\CustomModels\ViisonPickwareERP\Warehouse\ArticleDetailBinLocationMapping|null

the ArticleDetailBinLocationMapping for the ArticleDetail in the BinLocation, null if the ArticleDetail does not exist in the BinLocation

Returns all ArticleDetailBinLocationMapping mappings for the given $articleDetail in the given $warehouse.

findSortedWarehouseBinLocationMappings(\Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse, \Shopware\Models\Article\Detail $articleDetail) : array<mixed,\Shopware\CustomModels\ViisonPickwareERP\Warehouse\ArticleDetailBinLocationMapping>

The results are sorted as follows:

  1. not default location
  2. default mapping
  3. code, alphabetically

Arguments

$articleDetail

\Shopware\Models\Article\Detail

Response

array<mixed,\Shopware\CustomModels\ViisonPickwareERP\Warehouse\ArticleDetailBinLocationMapping>

Finds and returns the default return shipment warehouse.

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

Finds and returns the default warehouse.

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