- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/mobile_helper.php
- Класс: \CCrmMobileHelper
- Вызов: CCrmMobileHelper::getQuoteFilterFields
static function getQuoteFilterFields()
{
$arStatuses = array();
$arStatuses[""] = GetMessage("M_CRM_NOT_SELECTED");
$quoteStatuses = CCrmStatus::GetStatusList('QUOTE_STATUS');
foreach($quoteStatuses as $code => $name)
{
$arStatuses[$code] = $name;
}
$filterFields = array(
array(
"type" => "text",
"id" => "TITLE",
"name" => GetMessage('CRM_COLUMN_QUOTE_TITLE'),
"value" => ""
),
array(
"type" => "select",
"id" => "STATUS_ID",
"name" => GetMessage('CRM_COLUMN_QUOTE_STATUS_ID'),
"items" => $arStatuses,
"value" => ""
),
array(
"type" => "select-user",
"id" => "ASSIGNED_BY_ID",
"name" => GetMessage('CRM_COLUMN_QUOTE_ASSIGNED_BY'),
"value" => ""
),
array(
"type" => "number",
"id" => "OPPORTUNITY",
"name" => GetMessage('CRM_COLUMN_QUOTE_OPPORTUNITY'),
"value" => "",
"item" => array(
"from" => "",
"to" => ""
)
),
array(
"type" => "date",
"id" => "BEGINDATE",
"name" => GetMessage('CRM_COLUMN_QUOTE_BEGINDATE'),
"value" => ""
),
array(
"type" => "date",
"id" => "CLOSEDATE",
"name" => GetMessage('CRM_COLUMN_QUOTE_CLOSEDATE'),
"value" => ""
),
);
return $filterFields;
}