• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/reportstorelist.php
  • Класс: BitrixCatalogComponentReportStoreList
  • Вызов: ReportStoreList::prepareTotalField
private function prepareTotalField(array $totals, string $field): string
{
	if (empty($totals))
	{
		return 0;
	}

	$result = '';
	foreach ($totals as $measureId => $total)
	{
		$result .= $this->formatNumberWithMeasure($total[$field], (int)$measureId);
		$result .= '
'; } return $result; }