CCrmBizProc::ProcessDeletion

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmBizProc
  4. ProcessDeletion
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_bizproc.php
  • Класс: \CCrmBizProc
  • Вызов: CCrmBizProc::ProcessDeletion
public function ProcessDeletion($ID)
{
	if(!CModule::IncludeModule('bizproc') || !CBPRuntime::isFeatureEnabled())
		return true;

	$arErrorsTmp = array();
	CBPDocument::OnDocumentDelete(array('crm', $this->sDocument, $this->sEntityType.'_'.$ID), $arErrorsTmp);
	\Bitrix\Crm\Automation\QR\QrTable::deleteByEntity(
		CCrmOwnerType::ResolveID($this->sEntityType),
		$ID
	);

	if ($arErrorsTmp)
	{
		$this->LAST_ERROR = '';
		foreach ($arErrorsTmp as $e)
			$this->LAST_ERROR .= $e['message'].'
'; return false; } return true; }

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