• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Model/Dynamic/Factory.php
  • Класс: Bitrix\Crm\Model\Dynamic\Factory
  • Вызов: Factory::prepareIdentifier
public function prepareIdentifier($identifier)
{
	if ($identifier === 'SMART_INVOICE')
	{
		$type = Container::getInstance()->getTypeByEntityTypeId(\CCrmOwnerType::SmartInvoice);
		if ($type)
		{
			return $type->getId();
		}
	}
	if ($identifier === 'SMART_DOCUMENT')
	{
		$type = Container::getInstance()->getTypeByEntityTypeId(\CCrmOwnerType::SmartDocument);
		if ($type)
		{
			return $type->getId();
		}
	}

	return parent::prepareIdentifier($identifier);
}