|
23 | 23 | $prezzi_ivati = setting('Utilizza prezzi di vendita comprensivi di IVA'); |
24 | 24 |
|
25 | 25 | // Creazione righe fantasma |
26 | | -$autofill = new Util\Autofill($options['pricing'] ? 6 : 3, 70); |
| 26 | +$autofill = new Util\Autofill($options['pricing'] ? 7 : 4, 70); |
27 | 27 | $rows_per_page = ($documento['note'] || $options['pricing'] ? ($tipo_doc == 'Ddt in uscita' ? 22 : 24) : 27); |
28 | 28 | $autofill->setRows($rows_per_page, 0, $options['last-page-footer'] ? 34 : $rows_per_page); |
29 | 29 |
|
|
42 | 42 | <thead> |
43 | 43 | <tr> |
44 | 44 | <th class='text-center' style='width:5%'>".tr('#', [], ['upper' => true])."</th> |
| 45 | + <th class='text-center' style='width:15%'>".tr('Cod.', [], ['upper' => true])."</th> |
45 | 46 | <th class='text-center'>".tr('Descrizione', [], ['upper' => true])."</th> |
46 | 47 | <th class='text-center'>".tr('Q.tà', [], ['upper' => true]).'</th>'; |
47 | 48 |
|
|
110 | 111 | if ($options['pricing']) { |
111 | 112 | $text .= '</td><td></td><td></td><td>'; |
112 | 113 | } |
113 | | - $text .= '</td><td></td></tr><tr><td class="text-center" nowrap="nowrap" style="vertical-align: middle">'; |
| 114 | + |
| 115 | + if ($riga->isArticolo()) { |
| 116 | + echo '</td><td>'.$riga->codice.'</td>'; |
| 117 | + } else { |
| 118 | + $text .= '</td><td></td>'; |
| 119 | + } |
| 120 | + |
| 121 | + $text .= '</tr><tr><td class="text-center" nowrap="nowrap" style="vertical-align: middle">'; |
114 | 122 |
|
115 | 123 | echo ' |
116 | 124 | </td> |
|
127 | 135 | $autofill->count($r['descrizione']); |
128 | 136 |
|
129 | 137 | echo $num.' |
130 | | - </td> |
131 | | - <td>'.nl2br((string) $r['descrizione']); |
| 138 | + </td>'; |
132 | 139 |
|
133 | 140 | if ($riga->isArticolo()) { |
134 | | - echo '<br><small>'.$riga->codice.'</small>'; |
135 | | - $autofill->count($riga->codice, true); |
| 141 | + echo '<td class="text-center">'.$riga->codice.'</td>'; |
| 142 | + } else { |
| 143 | + echo '<td>-</td>'; |
136 | 144 | } |
137 | 145 |
|
| 146 | + echo' |
| 147 | + <td>'.nl2br((string) $r['descrizione']); |
| 148 | + |
| 149 | + |
138 | 150 | if ($riga->isArticolo()) { |
139 | 151 | // Seriali |
140 | 152 | $seriali = $riga->serials; |
|
0 commit comments