From 8551e1e77735927edfcd192b36601906f9af52e3 Mon Sep 17 00:00:00 2001 From: loviuz Date: Wed, 2 Sep 2020 18:42:00 +0200 Subject: [PATCH] Aggiunta numerazione righe in stampa ordini --- templates/ordini/body.php | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/templates/ordini/body.php b/templates/ordini/body.php index 135724784..407d5b110 100755 --- a/templates/ordini/body.php +++ b/templates/ordini/body.php @@ -10,10 +10,10 @@ $has_image = $righe->search(function ($item) { }); if ($has_image) { - $columns = 6; + $columns = 7; $char_number = $options['pricing'] ? 26 : 63; } else { - $columns = 5; + $columns = 6; $char_number = $options['pricing'] ? 45 : 82; } $columns = $options['pricing'] ? $columns : $columns - 3; @@ -26,8 +26,8 @@ $autofill->setRows(30); echo " - "; - + + "; if ($has_image) { echo " '; @@ -58,6 +58,10 @@ foreach ($righe as $riga) { echo ' '; + echo' + '; + if ($has_image) { if ($riga->isArticolo()) { echo ' @@ -172,7 +176,7 @@ if ($options['pricing']) { // Totale imponibile echo ' - @@ -185,7 +189,7 @@ if ($options['pricing']) { if ($show_sconto) { echo ' - @@ -197,7 +201,7 @@ if ($options['pricing']) { // Totale imponibile echo ' - @@ -210,7 +214,7 @@ if ($options['pricing']) { // IVA echo ' - @@ -222,7 +226,7 @@ if ($options['pricing']) { // TOTALE echo ' -
".tr('#', [], ['upper' => true])."".tr('Immagine', [], ['upper' => true]).'
+ '.($r['order'] + 1).'
+ '.tr('Imponibile', [], ['upper' => true]).':
+ '.tr('Sconto', [], ['upper' => true]).':
+ '.tr('Totale imponibile', [], ['upper' => true]).':
+ '.tr('Totale IVA', [], ['upper' => true]).':
+ '.tr('Totale documento', [], ['upper' => true]).':