• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/product/quantitycontrol.php
  • Класс: BitrixCatalogProductQuantityControl
  • Вызов: QuantityControl::setReservedStoreQuantity
static function setReservedStoreQuantity($productId, int $storeId, $value, bool $summary = false): void
{
	self::setValue(
		static::RESERVER_STORE_QUANTITY,
		$productId,
		$storeId,
		$value
	);

	if ($summary)
	{
		static::setReservedQuantity(
			$productId,
			self::getSummaryValue(
				static::RESERVER_STORE_QUANTITY,
				$productId
			)
		);
	}
}