issue #0001174: Retour du controle des formes juridiques

This commit is contained in:
Michael RICOIS 2012-08-07 15:10:54 +00:00
parent 2f87519f1b
commit 6fa9c1fe10

View File

@ -1104,6 +1104,13 @@ class PiecesController extends Zend_Controller_Action
if ($user->checkPerm('kbis')) {
$permKbis = true;
//Vérification que le kbis est disponible
if ( substr($session->getFormeJuridique(),0,1) == 7
|| substr($session->getFormeJuridique(),0,1) == 8
|| substr($session->getFormeJuridique(),0,1) == 9
|| in_array($session->getFormeJuridique(), array(1300,1500,1600,1800,1900) )
){
$kbisErrCJ = true;
}
//=> Département
$dep = substr($session->getCodeCommune(),0,2);
if ( in_array($dep, array('00','57','67','68','97','98')) ) {