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()
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!
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!
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)
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!
Arguments
$articleDetail
\Shopware\Models\Article\Detail
Updates the total physical stock for the passed `$articleDetail`.
recalculateTotalPhysicalStockForSaleForArticleDetail(\Shopware\Models\Article\Detail $articleDetail)
Arguments
$articleDetail
\Shopware\Models\Article\Detail