1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-23 22:03:18 +01:00

Rimozione link da stampa

This commit is contained in:
Dasc3er 2020-10-16 17:27:21 +02:00
parent 6dd0cb90bf
commit 7cf194eba3

View File

@ -67,17 +67,16 @@ foreach ($righe as $riga) {
<td class="text-center" nowrap="nowrap" style="vertical-align: middle">';
$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'
</td>
<td>
'.nl2br($r['descrizione']);
@ -87,8 +86,11 @@ foreach ($righe as $riga) {
$riferimenti = $source->referenceTargets;
foreach ($riferimenti as $riferimento) {
$documento_riferimento = $riferimento->target->getDocument();
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>';
}
}