1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
storestockdashboard.php
См. документацию.
1<?php
2
3namespace Bitrix\Catalog\Integration\Report\Dashboard;
4
5use Bitrix\Catalog\Integration\Report\Dashboard\Group\Group;
6use Bitrix\Catalog\Integration\Report\Dashboard\Group\StoreGroup;
7use Bitrix\Catalog\Integration\Report\Filter\StoreStockFilter;
8use Bitrix\Catalog\Integration\Report\View\StoreStock\StoreStockGrid;
9use Bitrix\Catalog\Integration\Report\View\StoreStock\StoreStockSaleChart;
10use Bitrix\Main\Localization\Loc;
11use Bitrix\Report\VisualConstructor\AnalyticBoard;
12
14{
15 public const BOARD_VERSION = 'v2';
16 public const BOARD_KEY = 'catalog_warehouse_stock';
17
18 public const ACCESS_BOARD_ID = 2;
19
20 public function getBoardKey(): string
21 {
22 return self::BOARD_KEY;
23 }
24
25 public function getBoardVersion(): string
26 {
27 return self::BOARD_VERSION;
28 }
29
30 public function getAccessBoardId(): int
31 {
32 return self::ACCESS_BOARD_ID;
33 }
34
35 public function getBoardTitle(): string
36 {
37 return Loc::getMessage('STORE_STOCK_DASHBOARD_TITLE');
38 }
39
40 protected static function getDefaultViewList(): array
41 {
42 return [
44 new StoreStockGrid(),
45 ];
46 }
47
48 protected static function getDefaultGroup(): Group
49 {
50 return (new StoreGroup());
51 }
52
54 {
55 $analyticBoard = parent::getAnalyticBoard();
56 $analyticBoard->setFilter(new StoreStockFilter($this->getBoardKey()));
57
58 return $analyticBoard;
59 }
60}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804