From a43ad5644bbfd9e3de25688949d85df827afd2d8 Mon Sep 17 00:00:00 2001 From: Bacca97 Date: Thu, 22 Mar 2018 19:10:29 +0100 Subject: [PATCH] Bugfix #174 --- templates/fatture/body.php | 52 +++++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 15 deletions(-) diff --git a/templates/fatture/body.php b/templates/fatture/body.php index 0cf6c0b9f..de3f0c81b 100644 --- a/templates/fatture/body.php +++ b/templates/fatture/body.php @@ -246,26 +246,48 @@ foreach ($v_iva as $key => $value) {

'; } } - -if (!empty($records[0]['note'])) { +echo ' +'; +echo ' + '; +if(abs($records[0]['bollo']) > 0){ echo ' -
-

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

-

'.nl2br($records[0]['note']).'

'; + '; +if(abs($records[0]['bollo']) > 0){ + echo ' + '; +} + +echo ' + '; +echo ' +
'; +}else{ + echo ' + '; +} + if (!empty($records[0]['note'])) { + echo ' +

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

+

'.nl2br($records[0]['note']).'

'; + } + echo ' +
'; } - if (abs($records[0]['bollo']) > 0) { echo ' -
- - - - -
-

- '.tr('Spazio per applicazione marca da bollo', [], ['upper' => true]).' -
'; + + + + +
+

+ '.tr('Spazio per applicazione marca da bollo', [], ['upper' => true]).' +
'; } +if(abs($records[0]['bollo']) > 0){ + echo ' +
'; // Info per il footer $imponibile = sum($imponibile);