• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/realizationdocument.php
  • Класс: Bitrix\Crm\Controller\RealizationDocument
  • Вызов: RealizationDocument::processBeforeAction
protected function processBeforeAction(Main\Engine\Action $action)
{
	if (!Main\Loader::includeModule('sale'))
	{
		return false;
	}

	$this->defaultStoreId = Catalog\StoreTable::getDefaultStoreId();

	if (Sale\Configuration::isEnableAutomaticReservation())
	{
		Sale\Configuration::disableAutomaticReservation();
		$this->needEnableAutomation = true;
	}

	return parent::processBeforeAction($action);
}