From 3fa824261d1a65180da86f61fd13bb3a1528bb22 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Mon, 16 May 2022 15:17:44 +0200 Subject: [PATCH] Fix stampa preventivo --- templates/preventivi/body.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/preventivi/body.php b/templates/preventivi/body.php index 7d33af91a..a243394d0 100755 --- a/templates/preventivi/body.php +++ b/templates/preventivi/body.php @@ -58,12 +58,12 @@ $has_image = $righe->search(function ($item) { }) !== false; $columns = 6; +$columns = $options['pricing'] ? $columns : 3; + if ($has_image) { ++$columns; } -$columns = $options['pricing'] ? $columns : 3; - // Creazione righe fantasma $autofill = new \Util\Autofill($columns); $autofill->setRows(20, 10); @@ -303,7 +303,7 @@ if (($options['pricing'] && !isset($options['hide_total'])) || $options['show_on '.tr('Imponibile', [], ['upper' => true]).': - + '.moneyFormat($show_sconto ? $imponibile : $totale_imponibile, 2).' '; @@ -316,7 +316,7 @@ if (($options['pricing'] && !isset($options['hide_total'])) || $options['show_on '.tr('Sconto', [], ['upper' => true]).': - + '.moneyFormat($sconto, 2).' '; @@ -328,7 +328,7 @@ if (($options['pricing'] && !isset($options['hide_total'])) || $options['show_on '.tr('Totale imponibile', [], ['upper' => true]).': - + '.moneyFormat($totale_imponibile, 2).' '; @@ -341,7 +341,7 @@ if (($options['pricing'] && !isset($options['hide_total'])) || $options['show_on '.tr('Totale IVA', [], ['upper' => true]).': - + '.moneyFormat($totale_iva, 2).' '; @@ -352,7 +352,7 @@ if (($options['pricing'] && !isset($options['hide_total'])) || $options['show_on '.tr('Totale documento', [], ['upper' => true]).': - + '.moneyFormat($totale, 2).' '; @@ -364,7 +364,7 @@ if (($options['pricing'] && !isset($options['hide_total'])) || $options['show_on '.tr('Sconto in fattura', [], ['upper' => true]).': - + '.moneyFormat($sconto_finale, 2).' '; @@ -375,7 +375,7 @@ if (($options['pricing'] && !isset($options['hide_total'])) || $options['show_on '.tr('Netto a pagare', [], ['upper' => true]).': - + '.moneyFormat($netto_a_pagare, 2).' ';