Update list.php

first introduce à type of totalisation
This commit is contained in:
BENKE Charlene 2022-02-05 12:10:57 +01:00 committed by GitHub
parent 8d74b51009
commit 1c87c6fd5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2021 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2022 Charlène Benke <charlene@patas-monkey.com>
*
* 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
@ -739,9 +740,10 @@ if ($resql) {
$totalarray['nbfield']++;
}
if (!$i) {
$totalarray['type'][$totalarray['nbfield']] = 'duration';
$totalarray['pos'][$totalarray['nbfield']] = 'fd.duree';
}
$totalarray['val']['fd.duree'] += convertSecondToTime($obj->duree, 'allhourmin');
$totalarray['val']['fd.duree'] += $obj->duree;
}
// Action column
print '<td class="nowrap center">';