From e6648011e83857d7a8944b099449325d836fd4d9 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Mon, 13 Feb 2023 11:32:50 +0100 Subject: [PATCH] Fix minore --- templates/riepilogo_interventi/bottom.php | 3 ++- templates/riepilogo_interventi/piece.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/riepilogo_interventi/bottom.php b/templates/riepilogo_interventi/bottom.php index 036a4bd25..15f018a5d 100755 --- a/templates/riepilogo_interventi/bottom.php +++ b/templates/riepilogo_interventi/bottom.php @@ -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 ' '.tr('Totale', [], ['upper' => true]).': - '.($km).' + '.($somma_km).' '.($pricing ? $somma_ore : '-').' '.($pricing ? moneyFormat($somma_imponibile, 2) : '-').' '.($pricing ? moneyFormat($somma_sconto, 2) : '-').' diff --git a/templates/riepilogo_interventi/piece.php b/templates/riepilogo_interventi/piece.php index bec4f4b3d..0d06ddfb7 100755 --- a/templates/riepilogo_interventi/piece.php +++ b/templates/riepilogo_interventi/piece.php @@ -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;