Aggiunto text danger per righe a 0 in fattura di vendita

This commit is contained in:
MatteoPistorello 2022-03-10 10:28:45 +01:00
parent e4200a6ba5
commit 06b958b120
1 changed files with 6 additions and 1 deletions

View File

@ -163,9 +163,14 @@ foreach ($righe as $riga) {
</td>';
// Prezzi unitari
if (empty($riga->prezzo_unitario_corrente) && $dir == 'entrata') {
$price_danger = 'text-danger';
} else {
$price_danger = '';
}
echo '
<td class="text-right">
'.moneyFormat($riga->prezzo_unitario_corrente);
<span class="'.$price_danger.'">'.moneyFormat($riga->prezzo_unitario_corrente).'</span>';
if ($dir == 'entrata' && $riga->costo_unitario != 0) {
echo '