1363 |
$valNewInstr["date_retour_rar"] = $this->f->formatDate($this->valF['date_retour_rar']); |
$valNewInstr["date_retour_rar"] = $this->f->formatDate($this->valF['date_retour_rar']); |
1364 |
$valNewInstr["date_envoi_controle_legalite"] = $this->f->formatDate($this->valF['date_envoi_controle_legalite']); |
$valNewInstr["date_envoi_controle_legalite"] = $this->f->formatDate($this->valF['date_envoi_controle_legalite']); |
1365 |
$valNewInstr["date_retour_controle_legalite"] = $this->f->formatDate($this->valF['date_retour_controle_legalite']); |
$valNewInstr["date_retour_controle_legalite"] = $this->f->formatDate($this->valF['date_retour_controle_legalite']); |
1366 |
$new_instruction->ajouter($valNewInstr,$db, $DEBUG); |
$retour = $new_instruction->ajouter($valNewInstr,$db, $DEBUG); |
1367 |
|
|
1368 |
|
//Si une erreur s'est produite |
1369 |
|
if ($retour == false){ |
1370 |
|
$this->correct = false ; |
1371 |
|
$this->msg .= $new_instruction->msg; |
1372 |
|
return false; |
1373 |
|
} |
1374 |
} |
} |
1375 |
// Si la date de retour AR est éditée on vérifie si il existe un événement automatique |
// Si la date de retour AR est éditée on vérifie si il existe un événement automatique |
1376 |
if ($this->getVal('date_retour_rar') == "" AND |
if ($this->getVal('date_retour_rar') == "" AND |
1392 |
$valNewInstr["date_retour_rar"] = $this->f->formatDate($this->valF['date_retour_rar']); |
$valNewInstr["date_retour_rar"] = $this->f->formatDate($this->valF['date_retour_rar']); |
1393 |
$valNewInstr["date_envoi_controle_legalite"] = $this->f->formatDate($this->valF['date_envoi_controle_legalite']); |
$valNewInstr["date_envoi_controle_legalite"] = $this->f->formatDate($this->valF['date_envoi_controle_legalite']); |
1394 |
$valNewInstr["date_retour_controle_legalite"] = $this->f->formatDate($this->valF['date_retour_controle_legalite']); |
$valNewInstr["date_retour_controle_legalite"] = $this->f->formatDate($this->valF['date_retour_controle_legalite']); |
1395 |
$new_instruction->ajouter($valNewInstr,$db, $DEBUG); |
$retour = $new_instruction->ajouter($valNewInstr,$db, $DEBUG); |
1396 |
|
|
1397 |
|
//Si une erreur s'est produite |
1398 |
|
if ($retour == false){ |
1399 |
|
$this->correct = false ; |
1400 |
|
$this->msg .= $new_instruction->msg; |
1401 |
|
return false; |
1402 |
|
} |
1403 |
} |
} |
1404 |
} |
} |
1405 |
|
|