DerivedPropertyUpdaterService

Implements \Shopware\Plugins\ViisonPickwareERP\Components\DerivedPropertyUpdater\DerivedPropertyUpdater, \Enlight_Hook

package

Default

Methods

__construct

__construct(\Shopware\Components\Model\ModelManager $entityManager, \Zend_Db_Adapter_Pdo_Abstract $database, \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\ArticleDetailStockInfoProvider $articleDetailStockInfoProvider) 

Arguments

$entityManager

\Shopware\Components\Model\ModelManager

$database

\Zend_Db_Adapter_Pdo_Abstract

Updates the minimum stocks of all article details in the database to the sum of their minimum stocks in all warehouses, whose stock is available for sale, or `null`, if the article detail's stock is not managed.

recalculateAllArticleDetailMinimumOnlineStocks() 
inheritdoc

Updates the incoming stock (i.e. open quantity of incomplete supplier orders) for the passed `$articleDetail` in all warehouses.

recalculateIncomingStockForArticleDetail(\Shopware\Models\Article\Detail $articleDetail) 

Note: The implementation of this method must be safe to be called during a Doctrine lifecycle hook. That is, flushing any changes to the database is not allowed!

inheritdoc

Arguments

$articleDetail

\Shopware\Models\Article\Detail

Updates the minimum stocks of the passed `$articleDetail` to the sum of its minimum stocks in all warehouses, whose stock is available for sale, if the `$articleDetail`'s stock is managed. Otherwise it is set to `null`.

recalculateMinimumOnlineStockForArticleDetail(\Shopware\Models\Article\Detail $articleDetail) 

Note: The implementation of this method must be safe to be called during a Doctrine lifecycle hook. That is, flushing any changes to the database is not allowed!

inheritdoc

Arguments

$articleDetail

\Shopware\Models\Article\Detail

Updates the total physical stock for the passed `$articleDetail` in the passed `$warehouse` (i.e. `WarehouseArticleDetailStockCounts`).

recalculatePhysicalStockForSaleForArticleDetailInWarehouse(\Shopware\Models\Article\Detail $articleDetail, \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse) 
inheritdoc

Arguments

$articleDetail

\Shopware\Models\Article\Detail

Updates the total reserved stock for the passed `$articleDetail` that is cached for the passed `$warehouse` (i.e.

recalculateReservedStockForArticleDetailInWarehouse(\Shopware\Models\Article\Detail $articleDetail, \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse) 

WarehouseArticleDetailStockCounts).

Note: The implementation of this method must be safe to be called during a Doctrine lifecycle hook. That is, flushing any changes to the database is not allowed!

inheritdoc

Arguments

$articleDetail

\Shopware\Models\Article\Detail

Updates the total physical stock for the passed `$articleDetail`.

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

Arguments

$articleDetail

\Shopware\Models\Article\Detail