- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/sip_helper.php
- Класс: \CCrmSipHelper
- Вызов: CCrmSipHelper::getStatusText
static function getStatusText(int $entityTypeId,bool $isReturnCustomer,bool $isRepeatedApproach = false): ?string { if ($entityTypeId === \CCrmOwnerType::Deal) { if ($isRepeatedApproach) { return Loc::getMessage('CRM_SIP_HELPER_REPEATED_APPROACH_DEAL'); } if ($isReturnCustomer) { return Loc::getMessage('CRM_SIP_HELPER_REPEATED_REPEATED_DEAL'); } return null; } if ($entityTypeId === \CCrmOwnerType::Lead) { if ($isReturnCustomer) { return Loc::getMessage('CRM_SIP_HELPER_REPEATED_REPEATED_LEAD'); } return null; } return null; }