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

Fix stampa ordini con immagine

This commit is contained in:
Pek5892 2024-01-10 15:08:09 +01:00
parent 3edf623da0
commit 322e7483f5

View File

@ -174,7 +174,19 @@ foreach ($righe as $riga) {
<td>'.$r['descrizione'];
} else {
echo $num.'
</td>
</td>';
if ($has_image) {
if ($riga->isArticolo() && !empty($riga->articolo->image)) {
echo '
<td align="center">
<img src="'.$riga->articolo->image.'" style="max-height: 80px; max-width:120px">
</td>';
} else {
echo '
<td></td>';
}
}
echo '
<td>'.nl2br($r['descrizione']);
}