• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/report/handler/order/basegrid.php
  • Класс: Bitrix\Crm\Integration\Report\Handler\Order\BaseGrid
  • Вызов: BaseGrid::getMultipleData
public function getMultipleData()
{
	$calculatedData = $this->getCalculatedData();
	$items = (isset($calculatedData['items']) && is_array($calculatedData['items'])) ? $calculatedData['items'] : [];
	$config = (isset($calculatedData['config']) && is_array($calculatedData['config'])) ? $calculatedData['config'] : [];

	$elementLabel = $this->getFormElement('label');
	$config['title'] = $elementLabel ? $elementLabel->getValue() : '';
	$config['titleShort'] = Loc::getMessage('CRM_REPORT_ORDER_HANDLER_ORDER_COUNT_SHORT_TITLE');
	$config['valuesAmount'] = [
		'firstAdditionalAmount' => [
			'title' => Loc::getMessage('CRM_REPORT_ORDER_HANDLER_ORDER_SUM_SHORT_TITLE'),
			'value' => \CCrmCurrency::MoneyToString(
				$calculatedData['amount']['sum'],
				\CCrmCurrency::GetAccountCurrencyID()
			),
			'targetUrl' => $this->getTargetUrl('/shop/orders/analytics/list/'),
		]
	];

	$shortModeField = $this->getFormElement('shortMode');
	$shortModeValue = $shortModeField ? $shortModeField->getValue() : false;
	if ($shortModeValue)
	{
		$config['mode'] = 'singleData';
	}

	return [
		'items' => $items,
		'config' => $config,
	];
}