Skip to content

Commit

Permalink
fix: visualizzazione giacenze in articoli solo per sedi movimentate
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Nov 5, 2024
1 parent 9f25fca commit bf1d98e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/articoli/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@
</thead>
<tbody>';
foreach ($sedi as $sede) {
echo '
if ($giacenze[$sede['id']][0] != 0) {
echo '
<tr class="'.($giacenze[$sede['id']][0]<$articolo->threshold_qta ? 'text-danger' : '').'">
<td>'.$sede['nomesede'].'</td>
<td class="text-right">'.numberFormat($giacenze[$sede['id']][0], 'qta').' '.$articolo->um.'</td>
'.($articolo->fattore_um_secondaria != 0 ? '<td class="text-right"><i class="fa fa-chevron-right pull-left"></i> '.$giacenze[$sede['id']][0] * $articolo->fattore_um_secondaria.' '.$articolo->um_secondaria.'</td>' : '').'
</tr>';
}
}
echo '
</tbody>
Expand Down

0 comments on commit bf1d98e

Please sign in to comment.