getActualStockForArticle
getActualStockForArticle(\Shopware\Models\Article\Detail $articleDetail) : integer
Arguments
$articleDetail
\Shopware\Models\Article\Detail
Response
integer
getAllUninitializedArticleDetails
getAllUninitializedArticleDetails() : array
getAllUninitializedArticleDetailsIncludingUnmanagedArticles
getAllUninitializedArticleDetailsIncludingUnmanagedArticles() : array
getPaginatedUninitializedArticleDetails
getPaginatedUninitializedArticleDetails(string|null $filterStr, string|null $orderBy, string|null $direction, integer $start, integer $limit) : array
Performs stock initialization for a batch of article details which are not already initialized.
initializeStocksForABatchOfUninitializedArticleDetails(integer|null $batchSize = self::DEFAULT_BATCH_SIZE) : integer
Throws |
- \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockLedgerConcurrencyException
if a concurrent stock initialization is detected
|
Arguments
Response
integer
The number of stocks which are not yet initialized
Performs stock initialization for all article details which are not already initialized.
initializeStocksOfAllUninitializedArticleDetails()
|
|
|
|
Throws |
- \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockLedgerConcurrencyException
if a concurrent stock initialization is detected
|
Initializes the stock and bin location mappings of all passed `$articleDetails`, if necessary. Any stock change
resulting from the initialization will be done in the default warehouse.
initializeStocksOfArticleDetails(array<mixed,\Shopware\Models\Article\Detail> $articleDetails)
|
|
Throws |
- \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\StockLedgerConcurrencyException
if a concurrent stock initialization is detected
|
Arguments
$articleDetails
array<mixed,\Shopware\Models\Article\Detail>