Fix minore

This commit is contained in:
Pek5892 2023-02-13 11:32:50 +01:00
parent 2ec4c02704
commit e6648011e8
2 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,7 @@ $somma_sconto = sum($somma_sconto);
$somma_totale_imponibile = sum($somma_totale_imponibile);
$somma_iva = sum($somma_iva);
$somma_totale_ivato = sum($somma_totale_ivato);
$somma_km = sum($somma_km);
if (setting('Formato ore in stampa') == 'Sessantesimi') {
$somma_ore = Translator::numberToHours($somma_ore);
@ -38,7 +39,7 @@ echo '
<th class="text-right" style="border-left: 0;">
<b>'.tr('Totale', [], ['upper' => true]).':</b>
</th>
<th class="text-center">'.($km).'</td>
<th class="text-center">'.($somma_km).'</td>
<th class="text-center">'.($pricing ? $somma_ore : '-').'</th>
<th class="text-center">'.($pricing ? moneyFormat($somma_imponibile, 2) : '-').'</th>
<th class="text-center">'.($pricing ? moneyFormat($somma_sconto, 2) : '-').'</th>

View File

@ -34,6 +34,7 @@ $totale_imponibile = $tipo=='interno' ? $intervento->spesa : $intervento->totale
$iva = $tipo=='interno' ? (($intervento->spesa * $iva_predefinita) / 100) : $intervento->iva;
$totale_ivato = $tipo=='interno' ? ($intervento->spesa + $iva) : $intervento->totale;
$somma_km[] = $km;
$somma_ore[] = $ore;
$somma_imponibile[] = $imponibile;
$somma_sconto[] = $sconto;