• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/requisite/invoicerequisiteconvertexception.php
  • Класс: Bitrix\Crm\Requisite\InvoiceRequisiteConvertException
  • Вызов: InvoiceRequisiteConvertException::getLocalizedMessage
public function getLocalizedMessage()
{
	Main\Localization\Loc::loadMessages(__FILE__);

	$code = $this->getCode();
	if($code === self::GENERAL)
	{
		return GetMessage('CRM_INV_RQ_CONV_ERROR_GENERAL');
	}
	elseif($code === self::PERSON_TYPE_NOT_FOUND)
	{
		return GetMessage('CRM_INV_RQ_CONV_ERROR_PERSON_TYPE_NOT_FOUND');
	}
	elseif($code === self::PROPERTY_NOT_FOUND)
	{
		return GetMessage('CRM_INV_RQ_CONV_ERROR_PROPERTY_NOT_FOUND');
	}
	elseif($code === self::PRESET_NOT_BOUND)
	{
		return GetMessage('CRM_INV_RQ_CONV_ERROR_PRESET_NOT_BOUND');
	}

	return $this->getMessage();
}