12 \Bitrix\Main\Localization\Loc::loadMessages(
13 $_SERVER[
'DOCUMENT_ROOT'].BX_ROOT.
'/components/bitrix/crm.'.strtolower($entityType).
'.edit/component.php'
15 $addressLabels = Bitrix\Crm\EntityAddress::getShortLabels();
19 'Name' => GetMessage(
'CRM_FIELD_ID'),
27 'Name' => GetMessage(
'CRM_FIELD_TITLE_LEAD'),
35 'Name' => GetMessage(
'CRM_FIELD_STATUS_ID'),
37 'Options' => CCrmStatus::GetStatusListEx(
'STATUS'),
42 'STATUS_DESCRIPTION' => array(
43 'Name' => GetMessage(
'CRM_FIELD_STATUS_DESCRIPTION'),
45 'Filterable' =>
false,
50 "Name" => GetMessage(
"CRM_FIELD_OPENED"),
56 'OPPORTUNITY' => array(
57 'Name' => GetMessage(
'CRM_FIELD_OPPORTUNITY'),
63 'CURRENCY_ID' => array(
64 'Name' => GetMessage(
'CRM_FIELD_CURRENCY_ID'),
66 'Options' => CCrmCurrencyHelper::PrepareListItems(),
75 'Name' => GetMessage(
'CRM_FIELD_COMMENTS'),
77 'Filterable' =>
false,
82 'Name' => GetMessage(
'CRM_LEAD_FIELD_NAME'),
89 'Name' => GetMessage(
'CRM_FIELD_LAST_NAME'),
95 'SECOND_NAME' => array(
96 'Name' => GetMessage(
'CRM_FIELD_SECOND_NAME'),
102 'HONORIFIC' => array(
103 'Name' => GetMessage(
'CRM_FIELD_HONORIFIC'),
105 'Options' => CCrmStatus::GetStatusListEx(
'HONORIFIC'),
109 'BIRTHDATE' => array(
110 'Name' => GetMessage(
'CRM_LEAD_EDIT_FIELD_BIRTHDATE'),
111 'Type' =>
'datetime',
112 'Filterable' =>
true,
117 'Name' => GetMessage(
'CRM_FIELD_EMAIL'),
119 'Filterable' =>
true,
125 'Name' => GetMessage(
'CRM_FIELD_PHONE'),
127 'Filterable' =>
true,
133 'Name' => GetMessage(
'CRM_FIELD_WEB'),
135 'Filterable' =>
true,
140 'Name' => GetMessage(
'CRM_FIELD_MESSENGER'),
142 'Filterable' =>
true,
146 'COMPANY_TITLE' => array(
147 'Name' => GetMessage(
'CRM_FIELD_COMPANY_TITLE'),
149 'Filterable' =>
true,
154 'Name' => GetMessage(
'CRM_FIELD_POST'),
156 'Filterable' =>
true,
160 'FULL_ADDRESS' => array(
161 'Name' => GetMessage(
'CRM_FIELD_ADDRESS'),
163 'Filterable' =>
false,
168 'Name' => $addressLabels[
'ADDRESS'],
170 'Filterable' =>
true,
174 'ADDRESS_2' => array(
175 'Name' => $addressLabels[
'ADDRESS_2'],
177 'Filterable' =>
true,
181 'ADDRESS_CITY' => array(
182 'Name' => $addressLabels[
'CITY'],
184 'Filterable' =>
true,
188 'ADDRESS_POSTAL_CODE' => array(
189 'Name' => $addressLabels[
'POSTAL_CODE'],
191 'Filterable' =>
true,
195 'ADDRESS_REGION' => array(
196 'Name' => $addressLabels[
'REGION'],
198 'Filterable' =>
true,
202 'ADDRESS_COUNTRY' => array(
203 'Name' => $addressLabels[
'COUNTRY'],
205 'Filterable' =>
true,
209 'SOURCE_ID' => array(
210 'Name' => GetMessage(
'CRM_FIELD_SOURCE_ID'),
212 'Options' => CCrmStatus::GetStatusListEx(
'SOURCE'),
213 'Filterable' =>
true,
217 'SOURCE_DESCRIPTION' => array(
218 'Name' => GetMessage(
'CRM_FIELD_SOURCE_DESCRIPTION'),
220 'Filterable' =>
false,
224 "DATE_CREATE" => array(
225 "Name" => GetMessage(
"CRM_LEAD_EDIT_FIELD_DATE_CREATE"),
226 "Type" =>
"datetime",
227 "Filterable" =>
true,
231 "DATE_MODIFY" => array(
232 "Name" => GetMessage(
"CRM_LEAD_EDIT_FIELD_DATE_MODIFY"),
233 "Type" =>
"datetime",
234 "Filterable" =>
true,
238 'IS_RETURN_CUSTOMER' => array(
239 'Name' => GetMessage(
'CRM_DOCUMENT_LEAD_IS_RETURN_CUSTOMER'),
245 $arResult += parent::getEntityFields($entityType);