1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Aggiunta gestione calcolo media su colonne

This commit is contained in:
FabioL
2024-05-09 16:51:13 +02:00
parent 44a9355477
commit 540fe7b4d2
8 changed files with 107 additions and 11 deletions

View File

@ -52,6 +52,7 @@ $results = [
'recordsTotal' => 0,
'recordsFiltered' => 0,
'summable' => [],
'avg' => [],
'draw' => $draw_numer,
];
@ -76,6 +77,9 @@ if (!empty($query)) {
// SOMME
$results['summable'] = Query::getSums($structure, $search);
// MEDIE
$results['avg'] = Query::getAverages($structure, $search);
// Allineamento delle righe
$align = [];
$row = isset($rows[0]) ? $rows[0] : [];