print the good format of totalisation
This commit is contained in:
parent
1c87c6fd5d
commit
9977761846
@ -13,7 +13,12 @@ if (isset($totalarray['pos'])) {
|
|||||||
while ($i < $totalarray['nbfield']) {
|
while ($i < $totalarray['nbfield']) {
|
||||||
$i++;
|
$i++;
|
||||||
if (!empty($totalarray['pos'][$i])) {
|
if (!empty($totalarray['pos'][$i])) {
|
||||||
print '<td class="right">'.price(!empty($totalarray['val'][$totalarray['pos'][$i]])?$totalarray['val'][$totalarray['pos'][$i]]:0).'</td>';
|
print '<td class="right">';
|
||||||
|
if ($totalarray['type'][$i] == 'duration')
|
||||||
|
print (!empty($totalarray['val'][$totalarray['pos'][$i]])?convertSecondToTime($totalarray['val'][$totalarray['pos'][$i]], 'allhourmin'):0);
|
||||||
|
else
|
||||||
|
print price(!empty($totalarray['val'][$totalarray['pos'][$i]])?$totalarray['val'][$totalarray['pos'][$i]]:0);
|
||||||
|
print '</td>';
|
||||||
} else {
|
} else {
|
||||||
if ($i == 1) {
|
if ($i == 1) {
|
||||||
if (is_null($limit) || $num < $limit) {
|
if (is_null($limit) || $num < $limit) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user