CAllCrmInvoice::GetFieldCaption

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmInvoice
  4. GetFieldCaption
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_invoice.php
  • Класс: \CAllCrmInvoice
  • Вызов: CAllCrmInvoice::GetFieldCaption
static function GetFieldCaption($fieldName)
{
	if($fieldName === 'CURRENCY_ID')
	{
		$fieldName = 'CURRENCY';
	}
	elseif($fieldName === 'LOCATION_ID')
	{
		$fieldName = 'PR_LOCATION';
	}

	$result = GetMessage("CRM_INVOICE_FIELD_{$fieldName}");
	return is_string($result) ? $result : '';
}

Добавить комментарий