From 80f1a557b79d6b976b5edf5ea2b66be0854bf457 Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Tue, 7 May 2024 12:36:57 +0200 Subject: [PATCH] 13597-Add sum operation in report Grouped->Exception --- pandora_console/include/functions_reporting.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 13a21f3fb0..7efea4d6c7 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -4122,6 +4122,13 @@ function reporting_exception( ); break; + case 'sum': + $min = reporting_get_agentmodule_data_sum( + $exceptions[$i]['id_agent_module'], + $content['period'] + ); + break; + default: // Default. break; @@ -4173,6 +4180,10 @@ function reporting_exception( case 'min': $value = reporting_get_agentmodule_data_min($exc['id_agent_module'], $content['period']); break; + + case 'sum': + $value = reporting_get_agentmodule_data_sum($exc['id_agent_module'], $content['period']); + break; } }