...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/widget/data/leadconversionstatistics.php
- Класс: Bitrix\Crm\Widget\Data\LeadConversionStatistics
- Вызов: LeadConversionStatistics::getPresets
static function getPresets() { self::includeModuleFile(); $result = array( array( 'entity' => \CCrmOwnerType::LeadName, 'title' => GetMessage('CRM_LEAD_CONV_STAT_PRESET_OVERALL_COUNT'), 'listTitle' => GetMessage('CRM_LEAD_CONV_STAT_PRESET_OVERALL_COUNT_SHORT'), 'name' => self::TYPE_NAME.'::OVERALL_COUNT', 'source' => self::TYPE_NAME, 'select' => array('name' => 'COUNT', 'aggregate' => 'COUNT'), 'context' => DataContext::ENTITY, 'category' => 'CONVERTED' ), array( 'entity' => \CCrmOwnerType::LeadName, 'title' => GetMessage('CRM_LEAD_CONV_STAT_PRESET_CONTACT_COUNT'), 'name' => self::TYPE_NAME.'::CONTACT_COUNT', 'source' => self::TYPE_NAME, 'select' => array('name' => 'CONTACT_QTY', 'aggregate' => 'SUM'), 'context' => DataContext::ENTITY, 'category' => 'CONVERTED' ), array( 'entity' => \CCrmOwnerType::LeadName, 'title' => GetMessage('CRM_LEAD_CONV_STAT_PRESET_COMPANY_COUNT'), 'name' => self::TYPE_NAME.'::COMPANY_COUNT', 'source' => self::TYPE_NAME, 'select' => array('name' => 'COMPANY_QTY', 'aggregate' => 'SUM'), 'context' => DataContext::ENTITY, 'category' => 'CONVERTED' ), array( 'entity' => \CCrmOwnerType::LeadName, 'title' => GetMessage('CRM_LEAD_CONV_STAT_PRESET_DEAL_COUNT'), 'name' => self::TYPE_NAME.'::DEAL_COUNT', 'source' => self::TYPE_NAME, 'select' => array('name' => 'DEAL_QTY', 'aggregate' => 'SUM'), 'context' => DataContext::ENTITY, 'category' => 'CONVERTED' ), array( 'entity' => \CCrmOwnerType::LeadName, 'title' => GetMessage('CRM_LEAD_CONV_STAT_PRESET_OVERALL_SUM'), 'listTitle' => GetMessage('CRM_LEAD_CONV_STAT_PRESET_OVERALL_SUM_SHORT'), 'name' => self::TYPE_NAME.'::OVERALL_SUM', 'source' => self::TYPE_NAME, 'select' => array('name' => 'TOTALS.SUM_TOTAL', 'aggregate' => 'SUM'), 'format' => array('isCurrency' => 'Y', 'enableDecimals' => 'N'), 'context' => DataContext::FUND, 'category' => 'CONVERTED' ) ); return $result; }