CAllCrmCompany::getMyCompanyAdditionalUserFields

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmCompany
  4. getMyCompanyAdditionalUserFields
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_company.php
  • Класс: \CAllCrmCompany
  • Вызов: CAllCrmCompany::getMyCompanyAdditionalUserFields
static function getMyCompanyAdditionalUserFields()
{
	$fields = [];
	if(Crm\Integration\DocumentGeneratorManager::getInstance()->isEnabled())
	{
		$fields = [
			'UF_LOGO' => [
				'FIELD_NAME' => 'UF_LOGO',
				'ENTITY_ID' => static::GetUserFieldEntityID(),
				'USER_TYPE_ID' => \CUserTypeManager::BASE_TYPE_FILE,
				'SORT' => 100,
				'MULTIPLE' => 'N',
				'MANDATORY' => 'N',
				'SHOW_FILTER' => 'N',
				'SHOW_IN_LIST' => 'N',
				'EDIT_IN_LIST' => 'Y',
				'IS_SEARCHABLE' => 'N',
				'EDIT_FORM_LABEL' => [
					LANGUAGE_ID => GetMessage('CRM_COMPANY_USER_TYPE_DOCGEN_LOGO_TITLE'),
				],
				'LIST_COLUMN_LABEL' => [
					LANGUAGE_ID => GetMessage('CRM_COMPANY_USER_TYPE_DOCGEN_LOGO_TITLE')
				],
			],
			'UF_STAMP' => [
				'FIELD_NAME' => 'UF_STAMP',
				'ENTITY_ID' => static::GetUserFieldEntityID(),
				'USER_TYPE_ID' => \CUserTypeManager::BASE_TYPE_FILE,
				'SORT' => 200,
				'MULTIPLE' => 'N',
				'MANDATORY' => 'N',
				'SHOW_FILTER' => 'N',
				'SHOW_IN_LIST' => 'N',
				'EDIT_IN_LIST' => 'Y',
				'IS_SEARCHABLE' => 'N',
				'EDIT_FORM_LABEL' => [
					LANGUAGE_ID => GetMessage('CRM_COMPANY_USER_TYPE_DOCGEN_STAMP_TITLE'),
				],
				'LIST_COLUMN_LABEL' => [
					LANGUAGE_ID => GetMessage('CRM_COMPANY_USER_TYPE_DOCGEN_STAMP_TITLE')
				],
			],
			'UF_DIRECTOR_SIGN' => [
				'FIELD_NAME' => 'UF_DIRECTOR_SIGN',
				'ENTITY_ID' => static::GetUserFieldEntityID(),
				'USER_TYPE_ID' => \CUserTypeManager::BASE_TYPE_FILE,
				'SORT' => 300,
				'MULTIPLE' => 'N',
				'MANDATORY' => 'N',
				'SHOW_FILTER' => 'N',
				'SHOW_IN_LIST' => 'N',
				'EDIT_IN_LIST' => 'Y',
				'IS_SEARCHABLE' => 'N',
				'EDIT_FORM_LABEL' => [
					LANGUAGE_ID => GetMessage('CRM_COMPANY_USER_TYPE_DIRECTOR_SIGN_TITLE'),
				],
				'LIST_COLUMN_LABEL' => [
					LANGUAGE_ID => GetMessage('CRM_COMPANY_USER_TYPE_DIRECTOR_SIGN_TITLE')
				],
			],
			'UF_ACCOUNTANT_SIGN' => [
				'FIELD_NAME' => 'UF_ACCOUNTANT_SIGN',
				'ENTITY_ID' => static::GetUserFieldEntityID(),
				'USER_TYPE_ID' => \CUserTypeManager::BASE_TYPE_FILE,
				'SORT' => 400,
				'MULTIPLE' => 'N',
				'MANDATORY' => 'N',
				'SHOW_FILTER' => 'N',
				'SHOW_IN_LIST' => 'N',
				'EDIT_IN_LIST' => 'Y',
				'IS_SEARCHABLE' => 'N',
				'EDIT_FORM_LABEL' => [
					LANGUAGE_ID => GetMessage('CRM_COMPANY_USER_TYPE_ACCOUNTANT_SIGN_TITLE'),
				],
				'LIST_COLUMN_LABEL' => [
					LANGUAGE_ID => GetMessage('CRM_COMPANY_USER_TYPE_ACCOUNTANT_SIGN_TITLE')
				],
			],
		];
	}

	return $fields;
}

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