Update list.php
first introduce à type of totalisation
This commit is contained in:
parent
8d74b51009
commit
1c87c6fd5d
@ -7,6 +7,7 @@
|
|||||||
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
||||||
* Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
|
* Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
|
||||||
* Copyright (C) 2021 Frédéric France <frederic.france@netlogic.fr>
|
* 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
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -739,9 +740,10 @@ if ($resql) {
|
|||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
if (!$i) {
|
if (!$i) {
|
||||||
|
$totalarray['type'][$totalarray['nbfield']] = 'duration';
|
||||||
$totalarray['pos'][$totalarray['nbfield']] = 'fd.duree';
|
$totalarray['pos'][$totalarray['nbfield']] = 'fd.duree';
|
||||||
}
|
}
|
||||||
$totalarray['val']['fd.duree'] += convertSecondToTime($obj->duree, 'allhourmin');
|
$totalarray['val']['fd.duree'] += $obj->duree;
|
||||||
}
|
}
|
||||||
// Action column
|
// Action column
|
||||||
print '<td class="nowrap center">';
|
print '<td class="nowrap center">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user