diff --git a/templates/contratti/body.php b/templates/contratti/body.php index a014e1fa5..dae07c7dd 100755 --- a/templates/contratti/body.php +++ b/templates/contratti/body.php @@ -193,6 +193,8 @@ $sconto = $documento->sconto; $totale_imponibile = $documento->totale_imponibile; $totale_iva = $documento->iva; $totale = $documento->totale; +$sconto_finale = $documento->getScontoFinale(); +$netto_a_pagare = $documento->netto; $show_sconto = $sconto > 0; @@ -258,6 +260,30 @@ if ($options['pricing']) { '.moneyFormat($totale, 2).' '; + + if($sconto_finale){ + // SCONTO FINALE + echo ' + + + '.tr('Sconto finale', [], ['upper' => true]).': + + + '.moneyFormat($sconto_finale, 2).' + + '; + + // NETTO A PAGARE + echo ' + + + '.tr('Netto a pagare', [], ['upper' => true]).': + + + '.moneyFormat($netto_a_pagare, 2).' + + '; + } } echo ' '; diff --git a/templates/ddt/footer.php b/templates/ddt/footer.php index e1b83105b..59be91913 100755 --- a/templates/ddt/footer.php +++ b/templates/ddt/footer.php @@ -27,6 +27,8 @@ $sconto = $documento->sconto; $totale_imponibile = $documento->totale_imponibile; $totale_iva = $documento->iva; $totale = $documento->totale; +$sconto_finale = $documento->getScontoFinale(); +$netto_a_pagare = $documento->netto; $volume = $documento->volume ?: $documento->volume_calcolato; $peso_lordo = $documento->peso ?: $documento->peso_calcolato; @@ -39,7 +41,7 @@ if ($options['pricing']) { // Riga 1 echo " - +

".tr('Note', [], ['upper' => true]).'

'.nl2br($documento['note'])."

@@ -83,6 +85,36 @@ if ($options['pricing']) { ".moneyFormat($totale, 2).' '; + + if($sconto_finale){ + // Riga 4 SCONTO FINALE + echo " + + +

".tr('Sconto finale', [], ['upper' => true])."

+ + + + + + ".moneyFormat($sconto_finale, 2)." + + "; + + // Riga 5 NETTO A PAGARE + echo " + + +

".tr('Netto a pagare', [], ['upper' => true])."

+ + + + + + ".moneyFormat($netto_a_pagare, 2)." + + "; + } } else { // Riga 1 echo " diff --git a/templates/ordini/body.php b/templates/ordini/body.php index 5e74ab48e..a5b2eb491 100755 --- a/templates/ordini/body.php +++ b/templates/ordini/body.php @@ -216,6 +216,8 @@ $sconto = $documento->sconto; $totale_imponibile = $documento->totale_imponibile; $totale_iva = $documento->iva; $totale = $documento->totale; +$sconto_finale = $documento->getScontoFinale(); +$netto_a_pagare = $documento->netto; $show_sconto = $sconto > 0; @@ -285,6 +287,30 @@ if ($options['pricing']) { '.moneyFormat($totale, 2).' '; + + if($sconto_finale){ + // SCONTO FINALE + echo ' + + + '.tr('Sconto finale', [], ['upper' => true]).': + + + '.moneyFormat($sconto_finale, 2).' + + '; + + // NETTO A PAGARE + echo ' + + + '.tr('Netto a pagare', [], ['upper' => true]).': + + + '.moneyFormat($netto_a_pagare, 2).' + + '; + } } echo ' diff --git a/templates/preventivi/body.php b/templates/preventivi/body.php index 3b4c361cb..cb4f80e90 100755 --- a/templates/preventivi/body.php +++ b/templates/preventivi/body.php @@ -254,6 +254,8 @@ $sconto = $documento->sconto; $totale_imponibile = $documento->totale_imponibile; $totale_iva = $documento->iva; $totale = $documento->totale; +$sconto_finale = $documento->getScontoFinale(); +$netto_a_pagare = $documento->netto; $show_sconto = $sconto > 0; @@ -319,6 +321,30 @@ if (($options['pricing'] && !isset($options['hide_total'])) || $options['show_on '.moneyFormat($totale, 2).' '; + + if($sconto_finale){ + // SCONTO FINALE + echo ' + + + '.tr('Sconto finale', [], ['upper' => true]).': + + + '.moneyFormat($sconto_finale, 2).' + + '; + + // NETTO A PAGARE + echo ' + + + '.tr('Netto a pagare', [], ['upper' => true]).': + + + '.moneyFormat($netto_a_pagare, 2).' + + '; + } } echo '