This commit is contained in:
Thomas Zilio 2020-07-06 17:58:48 +02:00
parent 3526ba9e57
commit 0bfb911944
4 changed files with 13 additions and 20 deletions

View File

@ -21,12 +21,10 @@ echo '
$righe = $contratto->getRighe(); $righe = $contratto->getRighe();
foreach ($righe as $riga) { foreach ($righe as $riga) {
echo ' echo '
<tr data-id="'.$riga->id.'" data-type="'.get_class($riga).'">'; <tr data-id="'.$riga->id.'" data-type="'.get_class($riga).'">
<td class="text-center">
echo ' '.(($riga->order) + 1).'
<td class="text-center"> </td>';
'.(($riga->order) + 1).'
</td>';
// Descrizione // Descrizione
$descrizione = nl2br($riga->descrizione); $descrizione = nl2br($riga->descrizione);

View File

@ -39,15 +39,12 @@ foreach ($righe as $riga) {
echo ' echo '
<tr data-id="'.$riga->id.'" data-type="'.get_class($riga).'" '.$extra.'> <tr data-id="'.$riga->id.'" data-type="'.get_class($riga).'" '.$extra.'>
<td class="text-center">
'.(($riga->order) + 1).'
</td>
<td>'; <td>';
echo '
<td class="text-center">
'.(($riga->order) + 1).'
</td>
<td>';
if ($riga->isArticolo()) { if ($riga->isArticolo()) {
echo ' echo '
'.Modules::link('Articoli', $riga->idarticolo, $riga->codice.' - '.$riga->descrizione); '.Modules::link('Articoli', $riga->idarticolo, $riga->codice.' - '.$riga->descrizione);

View File

@ -21,12 +21,10 @@ echo '
$righe = $preventivo->getRighe(); $righe = $preventivo->getRighe();
foreach ($righe as $riga) { foreach ($righe as $riga) {
echo ' echo '
<tr data-id="'.$riga->id.'" data-type="'.get_class($riga).'">'; <tr data-id="'.$riga->id.'" data-type="'.get_class($riga).'">
<td class="text-center">
echo ' '.(($riga->order) + 1).'
<td class="text-center"> </td>';
'.(($riga->order) + 1).'
</td>';
// Descrizione // Descrizione
$descrizione = nl2br($riga->descrizione); $descrizione = nl2br($riga->descrizione);

View File

@ -62,7 +62,7 @@ foreach ($righe as $riga) {
if ($riga->isArticolo()) { if ($riga->isArticolo()) {
echo ' echo '
<td align="center"> <td align="center">
<img src="'.$riga->articolo->image.'" style="max-height: 80px"> <img src="'.$riga->articolo->image.'" style="max-height: 80px; max-width:120px">
</td>'; </td>';
$autofill->set(5); $autofill->set(5);