SumStatistics::getPresets

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. SumStatistics
  4. getPresets
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/widget/data/activity/sumstatistics.php
  • Класс: Bitrix\Crm\Widget\Data\Activity\SumStatistics
  • Вызов: SumStatistics::getPresets
static function getPresets()
{
	static::includeModuleFile();
	$result = array();
	$categories = static::getProviderCategories(CommunicationStatistics::STATISTICS_MONEY);

	foreach ($categories as $categoryId => $presetPrefix)
	{
		$result[] =	array(
			'entity' => \CCrmOwnerType::ActivityName,
			'title' => GetMessage('CRM_ACTIVITY_ACTIVITY_SUM_STAT_PROVIDER_PRESET'),
			'name' => self::TYPE_NAME.'::'.$presetPrefix.':SUM_TOTAL',
			'source' => self::TYPE_NAME,
			'select' => array(
				'name' => 'SUM_TOTAL',
				'aggregate' => 'SUM'
			),
			'context' => DataContext::FUND,
			'category' => $categoryId
		);
	}

	return $result;
}

Добавить комментарий