Correction livraison des fichiers statut association

This commit is contained in:
Michael RICOIS 2015-09-03 13:49:04 +00:00
parent afc44019df
commit ddd2a64451

View File

@ -917,7 +917,7 @@ class Pieces extends Scores_Ws_Server
* Identifiant, siren de l'entreprise
* @param string $type
* @param string $date
* Date au format AAAAMMJJ
* Date au format AAAA-MM-JJ
* @throws SoapFault
* @return string
* URL ou identifiant de commande
@ -928,11 +928,19 @@ class Pieces extends Scores_Ws_Server
$this->permission('actes');
// --- Lecture table des actes associations
$statutM = new Application_Model_JoAssoStatut();
$statutSql = $statutM->select()
->where('companyId=?', $companyId)
->where('satutDate=?', $date);
$statutResult = $statutM->fetchRow($statutSql);
try {
$statutM = new Application_Model_JoAssoStatut();
$statutSql = $statutM->select()
->where('companyId=?', $companyId)
->where('statutDate=?', $date);
$statutResult = $statutM->fetchRow($statutSql);
} catch (Zend_Db_Exception $e) {
if ($this->User->idClient==1) {
throw new SoapFault('ERR', $e->getMessage());
} else {
throw new SoapFault('ERR', "Application error");
}
}
if ($statutResult === null) {
return false;
}