From f0c3f12ea4695ed9194255452060d24f8eb5f16a Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 4 Oct 2020 10:32:11 +0200 Subject: [PATCH] Aggiunta colonna codice per stampe ddt --- templates/ddt/body.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/templates/ddt/body.php b/templates/ddt/body.php index 867265279..79b97530f 100755 --- a/templates/ddt/body.php +++ b/templates/ddt/body.php @@ -20,7 +20,7 @@ include_once __DIR__.'/../../core.php'; // Creazione righe fantasma -$autofill = new \Util\Autofill($options['pricing'] ? 6 : 3); +$autofill = new \Util\Autofill($options['pricing'] ? 7 : 4); $rows_per_page = 16; if (!empty($options['last-page-footer'])) { $rows_per_page += 10; @@ -33,6 +33,7 @@ echo " ".tr('#', [], ['upper' => true])." + ".tr('Cod.', [], ['upper' => true])." ".tr('Descrizione', [], ['upper' => true])." ".tr('Q.tà', [], ['upper' => true]).''; @@ -62,9 +63,19 @@ foreach ($righe as $riga) { '.$num.' - '; + + + '; + + if ($riga->isArticolo()) { + echo $riga->codice; + }else{ + echo '-'; + } echo' + + '.nl2br($r['descrizione']);