updated advanced pack to 3.12.0:
Reports:
Non-aggregated columns in Grid report export.
Normalized table mode for 2-dimensional Grid reports.
Ability to create internal reports via the UI.
Ability to show/hide and resize columns in the list report result view.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
* usage to the software or any modified version or derivative work of the software
|
||||
* created by or for you.
|
||||
*
|
||||
* Copyright (C) 2015-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2015-2026 EspoCRM, Inc.
|
||||
*
|
||||
* License ID: 19bc86a68a7bb01f458cb391d43a9212
|
||||
************************************************************************************/
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* usage to the software or any modified version or derivative work of the software
|
||||
* created by or for you.
|
||||
*
|
||||
* Copyright (C) 2015-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2015-2026 EspoCRM, Inc.
|
||||
*
|
||||
* License ID: 19bc86a68a7bb01f458cb391d43a9212
|
||||
************************************************************************************/
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* usage to the software or any modified version or derivative work of the software
|
||||
* created by or for you.
|
||||
*
|
||||
* Copyright (C) 2015-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2015-2026 EspoCRM, Inc.
|
||||
*
|
||||
* License ID: 19bc86a68a7bb01f458cb391d43a9212
|
||||
************************************************************************************/
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* usage to the software or any modified version or derivative work of the software
|
||||
* created by or for you.
|
||||
*
|
||||
* Copyright (C) 2015-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2015-2026 EspoCRM, Inc.
|
||||
*
|
||||
* License ID: 19bc86a68a7bb01f458cb391d43a9212
|
||||
************************************************************************************/
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* usage to the software or any modified version or derivative work of the software
|
||||
* created by or for you.
|
||||
*
|
||||
* Copyright (C) 2015-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2015-2026 EspoCRM, Inc.
|
||||
*
|
||||
* License ID: 19bc86a68a7bb01f458cb391d43a9212
|
||||
************************************************************************************/
|
||||
@@ -28,7 +28,7 @@ use Espo\Core\Record\SearchParamsFetcher;
|
||||
use Espo\Core\Select\SearchParams;
|
||||
use Espo\Core\Select\Where\Item as WhereItem;
|
||||
use Espo\Core\Utils\Json;
|
||||
use Espo\Modules\Advanced\Tools\Report\GridExportService;
|
||||
use Espo\Modules\Advanced\Tools\Report\Export\GridExportService;
|
||||
use Espo\Modules\Advanced\Tools\Report\ListExportService;
|
||||
use Espo\Modules\Advanced\Tools\Report\ListType\ExportParams;
|
||||
use Espo\Modules\Advanced\Tools\Report\ListType\SubReportParams;
|
||||
@@ -100,10 +100,11 @@ class Report extends Record
|
||||
}
|
||||
|
||||
return new SubReportParams(
|
||||
(int) ($request->getQueryParam('groupIndex') ?? 0),
|
||||
$groupValue,
|
||||
$request->hasQueryParam('groupValue2'),
|
||||
$groupValue2
|
||||
groupIndex: (int) ($request->getQueryParam('groupIndex') ?? 0),
|
||||
groupValue: $groupValue,
|
||||
hasGroupValue2: $request->hasQueryParam('groupValue2'),
|
||||
groupValue2: $groupValue2,
|
||||
target: $request->getQueryParam('target'),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -246,19 +247,20 @@ class Report extends Record
|
||||
$hasGroupValue2 = property_exists($data, 'groupValue2');
|
||||
|
||||
$subReportParams = new SubReportParams(
|
||||
$data->groupIndex ?? 0,
|
||||
$groupValue,
|
||||
$hasGroupValue2,
|
||||
$groupValue2
|
||||
groupIndex: $data->groupIndex ?? 0,
|
||||
groupValue: $groupValue,
|
||||
hasGroupValue2: $hasGroupValue2,
|
||||
groupValue2: $groupValue2,
|
||||
target: $data->subReportTarget ?? null,
|
||||
);
|
||||
}
|
||||
|
||||
$attachmentId = $this->getListExportService()->export(
|
||||
$id,
|
||||
$searchParams,
|
||||
$exportParams,
|
||||
$subReportParams,
|
||||
$this->user
|
||||
id: $id,
|
||||
searchParams: $searchParams,
|
||||
exportParams: $exportParams,
|
||||
subReportParams: $subReportParams,
|
||||
user: $this->user,
|
||||
);
|
||||
|
||||
return (object) ['id' => $attachmentId];
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* usage to the software or any modified version or derivative work of the software
|
||||
* created by or for you.
|
||||
*
|
||||
* Copyright (C) 2015-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2015-2026 EspoCRM, Inc.
|
||||
*
|
||||
* License ID: 19bc86a68a7bb01f458cb391d43a9212
|
||||
************************************************************************************/
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* usage to the software or any modified version or derivative work of the software
|
||||
* created by or for you.
|
||||
*
|
||||
* Copyright (C) 2015-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2015-2026 EspoCRM, Inc.
|
||||
*
|
||||
* License ID: 19bc86a68a7bb01f458cb391d43a9212
|
||||
************************************************************************************/
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* usage to the software or any modified version or derivative work of the software
|
||||
* created by or for you.
|
||||
*
|
||||
* Copyright (C) 2015-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2015-2026 EspoCRM, Inc.
|
||||
*
|
||||
* License ID: 19bc86a68a7bb01f458cb391d43a9212
|
||||
************************************************************************************/
|
||||
@@ -83,10 +83,11 @@ class ReportPanel extends Record
|
||||
}
|
||||
|
||||
$subReportParams = new SubReportParams(
|
||||
(int) ($request->getQueryParam('groupIndex') ?? 0),
|
||||
$groupValue,
|
||||
$request->hasQueryParam('groupValue2'),
|
||||
$groupValue2
|
||||
groupIndex: (int) ($request->getQueryParam('groupIndex') ?? 0),
|
||||
groupValue: $groupValue,
|
||||
hasGroupValue2: $request->hasQueryParam('groupValue2'),
|
||||
groupValue2: $groupValue2,
|
||||
target: $request->getQueryParam('target'),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* usage to the software or any modified version or derivative work of the software
|
||||
* created by or for you.
|
||||
*
|
||||
* Copyright (C) 2015-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2015-2026 EspoCRM, Inc.
|
||||
*
|
||||
* License ID: 19bc86a68a7bb01f458cb391d43a9212
|
||||
************************************************************************************/
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* usage to the software or any modified version or derivative work of the software
|
||||
* created by or for you.
|
||||
*
|
||||
* Copyright (C) 2015-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2015-2026 EspoCRM, Inc.
|
||||
*
|
||||
* License ID: 19bc86a68a7bb01f458cb391d43a9212
|
||||
************************************************************************************/
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* usage to the software or any modified version or derivative work of the software
|
||||
* created by or for you.
|
||||
*
|
||||
* Copyright (C) 2015-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2015-2026 EspoCRM, Inc.
|
||||
*
|
||||
* License ID: 19bc86a68a7bb01f458cb391d43a9212
|
||||
************************************************************************************/
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* usage to the software or any modified version or derivative work of the software
|
||||
* created by or for you.
|
||||
*
|
||||
* Copyright (C) 2015-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2015-2026 EspoCRM, Inc.
|
||||
*
|
||||
* License ID: 19bc86a68a7bb01f458cb391d43a9212
|
||||
************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user