49 $analyticPageList = [];
50 if(!\CBXFeatures::IsFeatureEnabled(
'SaleReports'))
52 return $analyticPageList;
55 \CBaseSaleReportHelper::initOwners();
57 $cursor = ReportTable::getList([
58 'select' => [
'ID',
'TITLE'],
60 '=CREATED_BY' => static::getCurrentUserId(),
61 '=OWNER_ID' => \CBaseSaleReportHelper::getOwners()
65 while ($row = $cursor->fetch())
68 $reportPage->setTitle($row[
'TITLE']);
69 $reportPage->setBoardKey(static::REPORT_KEY . $row[
'ID']);
70 $reportPage->setBatchKey(static::BATCH_INTERNET_SHOP);
72 if (method_exists($reportPage,
'setGroup'))
74 $reportPage->setGroup(self::BATCH_GROUP_SALES_GENERAL);
77 $reportPage->setExternal(
true);
79 $reportViewUrl = static::REPORT_VIEW_URL;
80 $reportViewUrl = \CHTTP::urlAddParams($reportViewUrl, [
82 'publicSidePanel' =>
'Y'
84 $reportPage->setExternalUrl($reportViewUrl);
86 $analyticPageList[] = $reportPage;
89 return $analyticPageList;