diff --git a/modules/ordini/row-list.php b/modules/ordini/row-list.php index 05674abc0..3a3c92994 100755 --- a/modules/ordini/row-list.php +++ b/modules/ordini/row-list.php @@ -213,11 +213,13 @@ foreach ($righe as $riga) { $evasione_bar['in_righe_interventi'] = 'warning'; $evasione_bar['or_righe_ordini'] = 'success'; foreach ($evasione_bar as $table => $color) { - $righe_ev = $dbo->table($table)->where('original_id', $riga->id)->where('original_type', get_class($riga))->get(); - $perc_ev = $righe_ev->sum('qta') * 100 / $riga->qta; - if ($perc_ev > 0) { - echo ' -
'; + if ($righe_ev->count() > 0) { + $righe_ev = $dbo->table($table)->where('original_id', $riga->id)->where('original_type', get_class($riga))->get(); + $perc_ev = $righe_ev->sum('qta') * 100 / $riga->qta; + if ($perc_ev > 0) { + echo ' + '; + } } } echo '