From 97c2d3dc58ddb4c4a9ad84abf6c99bc694906a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Tue, 20 May 2025 22:44:07 +0200 Subject: [PATCH] NEW add totalization on ticket graph (#34204) * add totalization on ticket graph * Update index.php --- htdocs/ticket/index.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/ticket/index.php b/htdocs/ticket/index.php index 7d39d10d9e2..11593041abb 100644 --- a/htdocs/ticket/index.php +++ b/htdocs/ticket/index.php @@ -3,6 +3,7 @@ * Copyright (C) 2019 Nicolas ZABOURI * Copyright (C) 2021-2024 Frédéric France * Copyright (C) 2024-2025 MDW + * Copyright (C) 2025 Charlene Benke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -263,14 +264,14 @@ $stringtoshow .= ''; if ($user->hasRight('ticket', 'read')) { print '
'; print ''; - print ''; + print ''; - print ''; - + print ''; print '
'.$langs->trans("Statistics").' '.$endyear.' '.img_picto('', 'filter.png', 'id="idsubimgDOLUSERCOOKIE_ticket_by_status" class="linkobject"').'
'.$langs->trans("Statistics").' '.$endyear.' '.img_picto('', 'filter.png', 'id="idsubimgDOLUSERCOOKIE_ticket_by_status" class="linkobject"').'
'; + print '
'; print $stringtoshow; // don't display graph if no series + $totalnb = 0; if (!empty($dataseries) && count($dataseries) > 1) { - $totalnb = 0; foreach ($dataseries as $key => $value) { $totalnb += $value['data']; } @@ -310,7 +311,7 @@ if ($user->hasRight('ticket', 'read')) { } } print '
'.$langs->trans("Total").''.$totalnb.'
'; print '
'; }