Controllo per evidenziare ive cancellate

This commit is contained in:
Luca 2019-01-23 15:48:36 +01:00
parent 56f7a25a75
commit 8bc0d34d44
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ foreach ($righe as $riga) {
if (!$riga instanceof Descrizione) {
echo '
'.Translator::numberToLocale($riga->iva).' €
<br><small class="help-block">'.$riga->desc_iva.'</small>';
<br><small class="'.(($dbo->fetchNum('SELECT deleted_at FROM co_iva WHERE deleted_at IS NOT NULL AND id = '.prepare($riga['idiva']))) ? 'text-red' : '').' help-block">'.$riga->desc_iva.'</small>';
}
echo '