getLotti())) { $sql = "SELECT codice FROM b_simog_lotti WHERE codice_simog = :codice AND eliminato = 'N' AND (cig = '' OR cig IS NULL) "; $lotti_no_cig = $pdo->go($sql ,[":codice"=>$record["codice"]])->rowCount(); if (empty($lotti_no_cig)) { $show = true; } } if (!$show) { if (!empty($alertManager)) { $alertManager->addDangerAlert("Richiedere o inserire il CIG per tutti i lotti",$hrefComando); } } } ?>