Bilan Confidentiel
This commit is contained in:
parent
6ceddc996c
commit
450ee12ca4
@ -4237,10 +4237,10 @@ class Entreprise extends Scores_Ws_Server
|
||||
$this->logger->info("Bilan $millesime $typeBilan demandée pour $siren");
|
||||
|
||||
$tabRet = array();
|
||||
if (strlen($siren)<>9){
|
||||
if (strlen($siren) != 9){
|
||||
$this->logger->warning( "Siren $siren incorrect");
|
||||
$this->sendError('1010');
|
||||
} elseif ($siren*1==0) {
|
||||
} elseif ($siren*1 == 0) {
|
||||
$this->logger->warning( "Siren $siren inexistant");
|
||||
$this->sendError('1010');
|
||||
}
|
||||
@ -4250,8 +4250,11 @@ class Entreprise extends Scores_Ws_Server
|
||||
$mBil->setSiren($siren);
|
||||
$tabBilan = $mBil->getBilan($millesime, $typeBilan, $ref, true);
|
||||
|
||||
// --- Bilan condidentiel
|
||||
|
||||
// --- Bilan confidentiel
|
||||
$clientsAuthorize = array(1,147);
|
||||
if ($tabBilan['TOP_CONFIDENTIEL'] == 1 && !in_array($this->User->idClient, $clientsAuthorize)) {
|
||||
throw new SoapFault('MSG', "Bilan confidentiel");
|
||||
}
|
||||
|
||||
// --- Génération du format pour le webservice
|
||||
$txtKey = array(
|
||||
|
Loading…
Reference in New Issue
Block a user