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