- Модуль: catalog
- Путь к файлу: ~/bitrix/modules/catalog/lib/document/action/store/decreasestorequantityaction.php
- Класс: BitrixCatalogDocumentActionStoreDecreaseStoreQuantityAction
- Вызов: DecreaseStoreQuantityAction::getStoreProductRow
protected function getStoreProductRow(): array
{
$row = null;
$storeId = $this->getStoreId();
$productId = $this->getProductId();
if (isset($storeId, $productId))
{
// load without cache to maintain the actual state.
$row = StoreProductTable::getRow([
'select' => [
'AMOUNT',
'QUANTITY_RESERVED',
],
'filter' => [
'=PRODUCT_ID' => $productId,
'=STORE_ID' => $storeId,
],
]);
}
return $row ?? [];
}