• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/bizproc/document/item.php
  • Класс: Bitrix\Crm\Integration\BizProc\Document\Item
  • Вызов: Item::getFieldName
static function getFieldName(Crm\Service\Factory $factory, string $fieldId): string
{
	$internalFieldIds = [Crm\Item::FIELD_NAME_IS_MANUAL_OPPORTUNITY];
	try
	{
		$fieldName = $factory->getFieldCaption($fieldId);
	}
	catch (ArgumentException $exception)
	{
		$fieldName = $fieldId;
	}

	if ($fieldName === $fieldId || in_array($fieldId, $internalFieldIds, true))
	{
		$fieldName = Loc::getMessage("CRM_BP_DOCUMENT_ITEM_FIELD_{$fieldId}") ?: $fieldName;
	}

	return $fieldName;
}