1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
charthandler.php
См. документацию.
1<?php
2
4
5use \Bitrix\Catalog\Integration\Report\Handler\BaseHandler;
10
11final class ChartHandler extends BaseHandler
12{
13 public function prepare()
14 {
15 return [
16 'filter' => $this->getFormattedFilter(),
17 'chart' => $this->getChartData(),
18 ];
19 }
20
21 public function getChartData(): array
22 {
23 $filterParams = $this->getFormattedFilter();
24
25 $chartStoreInfo = new ChartStoreInfo(new StoreWithProductsInfoCombiner());
26 $chartStoreInfo->accumulate('SUM_STORED', ...StoreStockSale::getReservedData($filterParams));
27
28 if
29 (
30 isset($filterParams['STORES'])
31 && count($filterParams['STORES']) <= self::MAX_CHART_COLUMNS_COUNT
32 )
33 {
34 $chartData = [
35 'data' => $chartStoreInfo->getCalculatedColumns(),
36 'storesInfo' => [
37 'storeCount' => $chartStoreInfo->getStoresCount(),
38 'cropStoreNamesList' => '',
39 ],
40 'isCommonChart' => false,
41 ];
42 }
43 else
44 {
45 $combinedData = $chartStoreInfo->getCombinedCalculatedColumn(self::MAX_STORES_LIST_CHARS);
46 $chartData = [
47 'data' => [$combinedData],
48 'storesInfo' => [
49 'storeCount' => $chartStoreInfo->getStoresCount(),
50 'cropStoreNamesList' => $combinedData['TITLE'],
51 ],
52 'isCommonChart' => true,
53 ];
54 }
55
56 $chartData['currency'] = CurrencyManager::getBaseCurrency();
57 $chartData['sliderUrl'] = static::formChartSliderUrl('bitrix:catalog.report.store_stock.salechart.stores.grid', $filterParams);
58
59 return $chartData;
60 }
61}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"
Определения waybill.php:936