• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_report_helper.php
  • Класс: \CCrmReportHelperBase
  • Вызов: CCrmReportHelperBase::getCurrencyName
static function getCurrencyName($ID, $htmlEncode = false)
{
	$currency = CCrmCurrency::GetByID($ID);
	if($currency)
	{
		return $currency['FULL_NAME'];
	}

	// Old style (for compatibility only)
	$statuses =  CCrmStatus::GetStatus('CURRENCY');
	$name = array_key_exists($ID, $statuses) ? $statuses[$ID]['NAME'] : $ID;
	return $htmlEncode ? htmlspecialcharsbx($name) : $name;
}