On place le fichier d'export dès le début
This commit is contained in:
parent
101ab6dc5f
commit
3555bb2cb0
@ -405,7 +405,10 @@ if (count($tabEntete)>0){
|
||||
fputcsv($fp, $tabEntete, ',', '"');
|
||||
}
|
||||
if ($opts->id) {
|
||||
$commandesM->update(array('dateStart'=>date('Y-m-d H:i:s')), "id = ".$commande->id);
|
||||
$commandesM->update(array(
|
||||
'dateStart'=>date('Y-m-d H:i:s'),
|
||||
'fichierOut' => basename($outFile)),
|
||||
"id = ".$commande->id);
|
||||
}
|
||||
foreach($tabIdentifiant as $item)
|
||||
{
|
||||
@ -531,8 +534,7 @@ foreach($tabIdentifiant as $item)
|
||||
fclose($fp);
|
||||
if ($opts->id) {
|
||||
$commandesM->update(array(
|
||||
'dateStop' => date('Y-m-d H:i:s'),
|
||||
'fichierOut' => basename($outFile),
|
||||
'dateStop' => date('Y-m-d H:i:s'),
|
||||
), "id = ".$commande->id);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user