- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/mobile_helper.php
- Класс: \CCrmMobileHelper
- Вызов: CCrmMobileHelper::getDealFilterFields
static function getDealFilterFields()
{
$arStatuses = array();
$arStatuses[""] = GetMessage("M_CRM_NOT_SELECTED");
$dealStatuses = CCrmStatus::GetStatusList('DEAL_STAGE');
foreach($dealStatuses as $code => $name)
{
$arStatuses[$code] = $name;
}
$filterFields = array(
array(
"type" => "text",
"id" => "TITLE",
"name" => GetMessage('CRM_COLUMN_DEAL_TITLE'),
"value" => ""
),
array(
"type" => "select",
"id" => "STAGE_ID",
"name" => GetMessage('CRM_COLUMN_DEAL_STAGE_ID'),
"items" => $arStatuses,
"value" => ""
),
array(
"type" => "select-user",
"id" => "ASSIGNED_BY_ID",
"name" => GetMessage('CRM_COLUMN_DEAL_ASSIGNED_BY'),
"value" => ""
),
array(
"type" => "number",
"id" => "OPPORTUNITY",
"name" => GetMessage('CRM_COLUMN_DEAL_OPPORTUNITY'),
"value" => "",
"item" => array(
"from" => "",
"to" => ""
)
),
array(
"type" => "date",
"id" => "DATE_CREATE",
"name" => GetMessage('CRM_COLUMN_DEAL_DATE_CREATE'),
"value" => ""
),
array(
"type" => "date",
"id" => "CLOSEDATE",
"name" => GetMessage('CRM_COLUMN_DEAL_CLOSEDATE'),
"value" => ""
),
);
return $filterFields;
}