From 0c2ee46576c997807c4bcf11311854b55250db91 Mon Sep 17 00:00:00 2001 From: loviuz Date: Wed, 5 Jan 2022 15:53:41 +0100 Subject: [PATCH] Modifica stampa preventivi senza totale per visualizzazione prezzo ivato --- templates/preventivi/body.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/preventivi/body.php b/templates/preventivi/body.php index 8c9828726..3d8940f24 100755 --- a/templates/preventivi/body.php +++ b/templates/preventivi/body.php @@ -170,7 +170,7 @@ echo " if ($options['pricing']) { echo " ".tr('Prezzo unitario', [], ['upper' => true])." - ".tr('Importo', [], ['upper' => true])." + ".( $options['hide_total'] ? tr('Importo ivato', [], ['upper' => true ]) : tr( 'Importo', [], ['upper' => true]) )." ".tr('IVA', [], ['upper' => true]).' (%)'; } @@ -252,7 +252,7 @@ foreach ($righe as $riga) { // Imponibile echo ' - '.moneyFormat($riga->totale_imponibile).' + '.( $options['hide_total'] ? moneyFormat($riga->totale) : moneyFormat($riga->totale_imponibile) ).' '; // Iva