12 \Bitrix\Main\Localization\Loc::loadMessages(
13 $_SERVER[
'DOCUMENT_ROOT'].BX_ROOT.
'/components/bitrix/crm.'.strtolower($entityType).
'.edit/component.php'
16 $addressLabels = Bitrix\Crm\EntityAddress::getShortLabels();
20 'Name' => GetMessage(
'CRM_FIELD_ID'),
28 'Name' => GetMessage(
'CRM_FIELD_FIRST_NAME'),
36 'Name' => GetMessage(
'CRM_FIELD_LAST_NAME'),
42 'SECOND_NAME' => array(
43 'Name' => GetMessage(
'CRM_FIELD_SECOND_NAME'),
50 'Name' => GetMessage(
'CRM_FIELD_HONORIFIC'),
52 'Options' => CCrmStatus::GetStatusListEx(
'HONORIFIC'),
57 'Name' => GetMessage(
'CRM_FIELD_BIRTHDATE'),
64 'Name' => GetMessage(
'CRM_FIELD_EMAIL'),
72 'Name' => GetMessage(
'CRM_FIELD_PHONE'),
80 'Name' => GetMessage(
'CRM_FIELD_WEB'),
87 'Name' => GetMessage(
'CRM_FIELD_MESSENGER'),
94 'Name' => GetMessage(
'CRM_FIELD_POST'),
100 'FULL_ADDRESS' => array(
101 'Name' => GetMessage(
'CRM_FIELD_ADDRESS'),
103 'Filterable' =>
true,
108 'Name' => $addressLabels[
'ADDRESS'],
110 'Filterable' =>
true,
114 'ADDRESS_2' => array(
115 'Name' => $addressLabels[
'ADDRESS_2'],
117 'Filterable' =>
true,
121 'ADDRESS_CITY' => array(
122 'Name' => $addressLabels[
'CITY'],
124 'Filterable' =>
true,
128 'ADDRESS_POSTAL_CODE' => array(
129 'Name' => $addressLabels[
'POSTAL_CODE'],
131 'Filterable' =>
true,
135 'ADDRESS_REGION' => array(
136 'Name' => $addressLabels[
'REGION'],
138 'Filterable' =>
true,
142 'ADDRESS_COUNTRY' => array(
143 'Name' => $addressLabels[
'COUNTRY'],
145 'Filterable' =>
true,
150 'Name' => GetMessage(
'CRM_FIELD_COMMENTS'),
152 'Filterable' =>
false,
157 'Name' => GetMessage(
'CRM_FIELD_TYPE_ID'),
159 'Options' => CCrmStatus::GetStatusListEx(
'CONTACT_TYPE'),
160 'Filterable' =>
true,
167 'CREATED_BY_ID' => array(
168 'Name' => GetMessage(
'CRM_DOCUMENT_FIELD_CREATED_BY_ID_CONTACT'),
171 'MODIFY_BY_ID' => array(
172 'Name' => GetMessage(
'CRM_DOCUMENT_FIELD_MODIFY_BY_ID'),
175 'SOURCE_ID' => array(
176 'Name' => GetMessage(
'CRM_FIELD_SOURCE_ID'),
178 'Options' => CCrmStatus::GetStatusListEx(
'SOURCE'),
179 'Filterable' =>
true,
183 'SOURCE_DESCRIPTION' => array(
184 'Name' => GetMessage(
'CRM_FIELD_SOURCE_DESCRIPTION'),
186 'Filterable' =>
false,
191 "Name" => GetMessage(
"CRM_FIELD_OPENED"),
193 "Filterable" =>
true,
198 "Name" => GetMessage(
"CRM_FIELD_EXPORT"),
200 "Filterable" =>
true,
211 "COMPANY_ID" => array(
212 "Name" => GetMessage(
"CRM_FIELD_COMPANY_ID"),
214 "Filterable" =>
true,
218 "COMPANY_IDS" => array(
219 "Name" => GetMessage(
"CRM_FIELD_COMPANY_IDS"),
221 "Filterable" =>
true,
226 "DATE_CREATE" => array(
227 "Name" => GetMessage(
"CRM_CONTACT_EDIT_FIELD_DATE_CREATE"),
228 "Type" =>
"datetime",
229 "Filterable" =>
true,
233 "DATE_MODIFY" => array(
234 "Name" => GetMessage(
"CRM_CONTACT_EDIT_FIELD_DATE_MODIFY"),
235 "Type" =>
"datetime",
236 "Filterable" =>
true,
242 $arResult += parent::getEntityFields($entityType);