Entity::temporarilyDisableAutomationIfNeeded

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Entity
  4. temporarilyDisableAutomationIfNeeded
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/order/entity.php
  • Класс: Bitrix\Crm\Controller\Order\Entity
  • Вызов: Entity::temporarilyDisableAutomationIfNeeded
protected function temporarilyDisableAutomationIfNeeded(): void
{
	$isUsedInventoryManagement = Catalog\Config\State::isUsedInventoryManagement();
	$isAutomationEnabled = Sale\Configuration::isEnableAutomaticReservation();

	if ($isUsedInventoryManagement && $isAutomationEnabled)
	{
		Sale\Configuration::disableAutomaticReservation();
		$this->automationWasTemporarilyDisabled = true;
	}
}

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