issue #0001898 : Set date
This commit is contained in:
parent
942d934e48
commit
dfd017fed0
@ -393,6 +393,7 @@ class Pieces extends WsScore
|
||||
//$infogreffe->debug = true;
|
||||
try {
|
||||
$pdf = $infogreffe->getCommandeT($dateCloture, $type, $id);
|
||||
$commandeM->update(array('dateEnvoi'=> date('YmdHis')), 'id='.$id);
|
||||
} catch (Exception $e) {
|
||||
$commandeM->update(array('cmdError'=> $e->getMessage()), 'id='.$id);
|
||||
}
|
||||
@ -411,7 +412,6 @@ class Pieces extends WsScore
|
||||
}
|
||||
$output = $hostname . '/fichier/greffes/' . basename($dest); // @todo : Chemin du fichier
|
||||
$this->wsLog('greffe_bilans', $identifiant, basename($dest));
|
||||
$commandeM->update(array('dateEnvoi'=> date('YmdHis')), 'id='.$id);
|
||||
} else {
|
||||
throw new SoapFault('ERR', 'Fichier introuvable');
|
||||
}
|
||||
@ -428,6 +428,7 @@ class Pieces extends WsScore
|
||||
$infogreffe = new Metier_Infogreffe_Bi($identifiant);
|
||||
try {
|
||||
$infogreffe->getCommandeC($dateCloture, $type, 'G-BI-'.$id);
|
||||
$commandeM->update(array('dateCommande'=> date('YmdHis')), 'id='.$id);
|
||||
$this->wsLog('greffe_bilans', $identifiant, $refCommande);
|
||||
} catch(Exception $e) {
|
||||
$commandeM->update(array('cmdError'=> $e->getMessage()), 'id='.$id);
|
||||
|
Loading…
Reference in New Issue
Block a user