Added sum in Callcenter Stats

This commit is contained in:
Frank Schubert
2025-07-17 20:37:38 +02:00
parent 42d28c894e
commit 207eabea15

View File

@@ -85,19 +85,19 @@
<table class="table table-sm table-striped">
<tr>
<th class="text-right">Anzahl eingehende Calls:</th>
<td class="text-monospace text-right"><?=$out["count"]?></td>
<td class="text-monospace text-right"><?=number_format($out["count"], 0, ",", ".")?></td>
</tr>
<tr>
<th class="text-right">Sekunden gesamt:</th>
<td class="text-monospace text-right"><?=$out["seconds"]?></td>
<td class="text-monospace text-right"><?=number_format($out["seconds"], 0, ",", ".")?></td>
</tr>
<tr>
<th class="text-right">Verrechenbare Minuten:</th>
<td class="text-monospace text-right"><?=$out["billable"]?></td>
<td class="text-monospace text-right"><?=number_format($out["billable"], 0, ",", ".")?></td>
</tr>
<tr>
<th class="text-right">Kosten:</th>
<td class="text-monospace text-right">€ <?=$out["cost"]?></td>
<td class="text-monospace text-right">€ <?=number_format($out["cost"], 0, ",", ".")?></td>
</tr>
</table>
<?php endif; ?>
@@ -109,24 +109,29 @@
<table class="table table-sm table-striped">
<tr>
<th class="text-right">Anzahl ausgehende Calls:</th>
<td class="text-monospace text-right"><?=$in["count"]?></td>
<td class="text-monospace text-right"><?=number_format($in["count"], 0, ",", ".")?></td>
</tr>
<tr>
<th class="text-right"h>Sekunden gesamt:</th>
<td class="text-monospace text-right"><?=$in["seconds"]?></td>
<td class="text-monospace text-right"><?=number_format($in["seconds"], 0, ",", ".")?></td>
</tr>
<tr>
<th class="text-right">Verrechenbare Minuten:</th>
<td class="text-monospace text-right"><?=$in["billable"]?></td>
<td class="text-monospace text-right"><?=number_format($in["billable"], 0, ",", ".")?></td>
</tr>
<tr>
<th class="text-right">Kosten:</th>
<td class="text-monospace text-right">€ <?=$in["cost"]?></td>
<td class="text-monospace text-right">€ <?=number_format($in["cost"], 0, ",", ".")?></td>
</tr>
</table>
<?php endif; ?>
</div>
</div>
<div class="row">
<div class="col text-right">
<h4>Summe: € <?=number_format($in["cost"] + $out["cost"], 0, ",", ".")?></h4>
</div>
</div>
</div>
</div>