CCrmSaleHelper::isAllowedReservation

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmSaleHelper
  4. isAllowedReservation
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/sale_helper.php
  • Класс: \CCrmSaleHelper
  • Вызов: CCrmSaleHelper::isAllowedReservation
static function isAllowedReservation(int $entityTypeId, int $categoryId): bool
{
	return (
		$entityTypeId === CCrmOwnerType::Deal
		&& State::isUsedInventoryManagement()
		&& !\CCrmSaleHelper::isWithOrdersMode()
		&& \CCrmSaleHelper::isShopAccess()
		&& AccessController::getCurrent()->checkByValue(
			ActionDictionary::ACTION_DEAL_PRODUCT_RESERVE,
			(string)$categoryId
		)
	);
}

Добавить комментарий