• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/duplicaterequisitecriterion.php
  • Класс: Bitrix\Crm\Integrity\DuplicateRequisiteCriterion
  • Вызов: DuplicateRequisiteCriterion::getIndexTypeID
public function getIndexTypeID()
{
	if($this->fieldName ===  DuplicateIndexType::RQ_INN_NAME)
	{
		return DuplicateIndexType::RQ_INN;
	}
	elseif($this->fieldName ===  DuplicateIndexType::RQ_OGRN_NAME)
	{
		return DuplicateIndexType::RQ_OGRN;
	}
	elseif($this->fieldName ===  DuplicateIndexType::RQ_OGRNIP_NAME)
	{
		return DuplicateIndexType::RQ_OGRNIP;
	}
	elseif($this->fieldName ===  DuplicateIndexType::RQ_BIN_NAME)
	{
		return DuplicateIndexType::RQ_BIN;
	}
	elseif($this->fieldName ===  DuplicateIndexType::RQ_EDRPOU_NAME)
	{
		return DuplicateIndexType::RQ_EDRPOU;
	}
	elseif($this->fieldName ===  DuplicateIndexType::RQ_VAT_ID_NAME)
	{
		return DuplicateIndexType::RQ_VAT_ID;
	}
	else
	{
		return DuplicateIndexType::UNDEFINED;
	}
}