Rimozione link da stampa

This commit is contained in:
Dasc3er 2020-10-16 17:27:21 +02:00
parent 6dd0cb90bf
commit 7cf194eba3
1 changed files with 6 additions and 4 deletions

View File

@ -67,17 +67,16 @@ foreach ($righe as $riga) {
<td class="text-center" nowrap="nowrap" style="vertical-align: middle">'; <td class="text-center" nowrap="nowrap" style="vertical-align: middle">';
$source_type = get_class($riga);
if ($riga->isArticolo()) { if ($riga->isArticolo()) {
echo $riga->codice; echo $riga->codice;
$source_type = 'Modules\DDT\Components\Articolo';
} else { } else {
echo '-'; echo '-';
$source_type = 'Modules\DDT\Components\Riga';
} }
echo' echo'
</td> </td>
<td> <td>
'.nl2br($r['descrizione']); '.nl2br($r['descrizione']);
@ -87,8 +86,11 @@ foreach ($righe as $riga) {
$riferimenti = $source->referenceTargets; $riferimenti = $source->referenceTargets;
foreach ($riferimenti as $riferimento) { foreach ($riferimenti as $riferimento) {
$documento_riferimento = $riferimento->target->getDocument();
echo ' echo '
<br><small>'.$riferimento->target->descrizione.'<br>'.reference($riferimento->target->getDocument()).'</small>'; <br><small>'.$riferimento->target->descrizione.'<br>'.tr('Rif. _DOCUMENT_', [
'_DOCUMENT_' => strtolower($documento_riferimento->getReference()),
]).'</small>';
} }
} }