WarehouseIntegrityService

Implements \Shopware\Plugins\ViisonPickwareERP\Components\Warehouse\WarehouseIntegrity, \Enlight_Hook

package

Default

Methods

__construct

__construct(\Shopware\Components\Model\ModelManager $entityManager, \Zend_Db_Adapter_Pdo_Abstract $database, \Enlight_Event_EventManager $eventManager, \Shopware_Components_Snippet_Manager $snippetManager) 

Arguments

$entityManager

\Shopware\Components\Model\ModelManager

$database

\Zend_Db_Adapter_Pdo_Abstract

$eventManager

\Enlight_Event_EventManager

$snippetManager

\Shopware_Components_Snippet_Manager

Ensures that the given `$articleDetail` has bin location mappings and warehouse stock counts in all warehouses.

ensureAllWarehouseMappingsForArticleDetail(\Shopware\Models\Article\Detail $articleDetail) 
inheritdoc

Arguments

$articleDetail

\Shopware\Models\Article\Detail

Ensures that all article details have bin location mappings and warehouse stock counts in the given `$warehouse`.

ensureMappingsForAllArticleDetailsInWarehouse(\Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse) 

Ensures that exactly one warehouse is marked as the default return shipment warehouse.

ensureSingleDefaultReturnShipmentWarehouse() 
inheritDoc

Ensures that exactly one warehouse is marked as the default warehouse.

ensureSingleDefaultWarehouse() 
inheritdoc

Evaluates all constraints on the deletion of the given `$warehouse` and returns any detected violations.

evaluateWarehouseDeletionConstraints(\Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse) : array<mixed,string>
inheritdoc

Arguments

Response

array<mixed,string>

Constants

The name of the collect event that is fired when determining whether a warehouse can be deleted.

VIOLATIONS