gestione gare pubbliche
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

41 righe
1.5 KiB

<?
if (isset($gara)) {
$lotti = $gara->getLotti();
$procedura = $gara->getProcedura();
if (!$procedura["multiLotto"]) {
$rec["titolo"] = "Informazioni affidamento";
}
$importoTotale = $gara->getTotaleImporti();
$totaleLotti = 0;
$href = "/backend/gare/lotti/index.php?codice={$gara->info["codice"]}";
if (!empty($gara->round["codice"])) {
$href .= "&codice_round={$gara->round["codice"]}";
}
if (!empty($lotti)) {
$status = "status-border-success";
foreach($lotti AS $lotto) {
if ($gara->normaRiferimento == "2016-50") {
$totaleLotti += ($lotto["importoBase"] + $lotto["oneriNoRibasso"]);
} else {
$totaleLotti += ($lotto["importoBase"] + $lotto["oneriNoRibasso"] + $lotto["importoManodopera"]);
}
if (empty($lotto["cig"])) {
$status = "status-border-warning";
$msg = __("CIG mancante per lotto") . " " . $lotto["numero"];
$alertManager->addWarningAlert($msg,$href);
}
}
$differenza = $importoTotale - $totaleLotti;
$differenza = number_format($differenza,2);
if (is_numeric($differenza) && ($differenza >= 1 || $differenza <= -1)) {
$status = "status-border-warning";
$alertManager->addWarningAlert(__("Differenza tra il totale lotti e il totale gara") . ": &euro; " . number_format($differenza,2,",","."),$href);
}
} else {
$status = "status-border-danger";
$msg = __("Nessun lotto inserito");
$alertManager->addDangerAlert($msg,$href);
}
}
?>