Appel à getIdentiteLight pour la récupération de la raisonsociale si on vient d'une autre page d'un lien

This commit is contained in:
Michael RICOIS 2010-01-12 16:17:39 +00:00
parent d3103fa73c
commit aa838b3c18

View File

@ -38,14 +38,40 @@ else
require_once 'common/dates.php';
require_once 'common/curl.php';
require_once 'infogreffe/infogreffe.php';
$login = strtolower($_SESSION['tabInfo']['login']);
//Elements de session
$tabInfo = $_SESSION['tabInfo'];
$login = strtolower($tabInfo['login']);
$raisonSociale = $tabInfo['entrep']['raisonSociale'];
isset($_REQUEST['rs'])? $raisonSociale = $_REQUEST['rs'] : '';
$cj = $tabInfo['entrep']['fj'];
$dep = substr(''.$tabInfo['entrep']['codeCommune'],0,2);
//Raison sociale inexacte
if ($siren != $tabInfo['entrep']['siren'])
{
$etab = scorews_identitelight($siret, $siren, $idEntreprise);
if(!empty($etab))
{
$tabEntrep = array();
$tabEntrep['raisonSociale'] = $etab['Nom'];
$tabEntrep['siren'] = $etab['Siren'];
$tabEntrep['siret'] = $etab['Siret'];
$tabEntrep['tva'] = $etab['TvaNumero'];
$tabEntrep['isin'] = $etab['Isin'];
$tabEntrep['AutreId'] = $etab['AutreId'];
$tabEntrep['active'] = $etab['Statut'];
$tabEntrep['Source'] = $etab['Source'];
$tabEntrep['SourceId'] = $etab['SourceId'];
$tabEntrep['codeCommune'] = $etab['Dept'].$etab['codeCommune'];
$tabEntrep['nafEn'] = $etab['NafEnt'];
$tabEntrep['nafEt'] = $etab['NafEtab'];
$tabEntrep['fj'] = $etab['FJ'];
$_SESSION['tabInfo']['entrep'] = $tabEntrep;
$raisonSociale = $etab['Nom'];
}
}
?>
<div id="center">
<?php