From 7cf194eba3ad8961629df0838a8fc2f39a18d751 Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Fri, 16 Oct 2020 17:27:21 +0200 Subject: [PATCH] Rimozione link da stampa --- templates/ddt/body.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/ddt/body.php b/templates/ddt/body.php index 8aa108101..200299ee5 100755 --- a/templates/ddt/body.php +++ b/templates/ddt/body.php @@ -67,17 +67,16 @@ foreach ($righe as $riga) { '; + $source_type = get_class($riga); if ($riga->isArticolo()) { echo $riga->codice; - $source_type = 'Modules\DDT\Components\Articolo'; } else { echo '-'; - $source_type = 'Modules\DDT\Components\Riga'; } echo' - + '.nl2br($r['descrizione']); @@ -87,8 +86,11 @@ foreach ($righe as $riga) { $riferimenti = $source->referenceTargets; foreach ($riferimenti as $riferimento) { + $documento_riferimento = $riferimento->target->getDocument(); echo ' -
'.$riferimento->target->descrizione.'
'.reference($riferimento->target->getDocument()).'
'; +
'.$riferimento->target->descrizione.'
'.tr('Rif. _DOCUMENT_', [ + '_DOCUMENT_' => strtolower($documento_riferimento->getReference()), + ]).'
'; } }