requete getIdentite en mode light
This commit is contained in:
parent
e207ccdf8e
commit
2472d99d4e
@ -92,10 +92,10 @@ if($_REQUEST['submit']){
|
||||
}
|
||||
|
||||
|
||||
if($commandeEnquete == FALSE){
|
||||
|
||||
if($commandeEnquete == FALSE)
|
||||
{
|
||||
try {
|
||||
$O = $client->getIdentite($siret, $idEntreprise);
|
||||
$O = $client->getIdentite($siret, $idEntreprise, false);
|
||||
$etab = $O['result'];
|
||||
$firephp->log($etab,'etab');
|
||||
} catch (SoapFault $fault) {
|
||||
@ -240,20 +240,20 @@ if($commandeEnquete == FALSE){
|
||||
<div class="infoTitle StyleInfoLib">Numéro identifiant Siren</div>
|
||||
<div class="infoData">
|
||||
<?php print substr($etab['Siren'],0,3).' '.substr($etab['Siren'],3,3).' '.substr($etab['Siren'],6,3); ?>
|
||||
<input type="hidden" name="InfoEnq[Siren]" value="<?php print $etab['Siren']; ?>"/>
|
||||
<input type="hidden" name="InfoEnq[Siren]" value="<?=$etab['Siren']; ?>"/>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro identifiant Siret</div>
|
||||
<div class="infoData"><?php print substr($etab['Siren'],0,3).' '.substr($etab['Siren'],3,3).' '.substr($etab['Siren'],6,3).' <i>'.substr($etab['Siret'],9,5).'</i>' ?></div>
|
||||
<div class="infoData"><?=print substr($etab['Siren'],0,3).' '.substr($etab['Siren'],3,3).' '.substr($etab['Siren'],6,3).' <i>'.substr($etab['Siret'],9,5).'</i>' ?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro de TVA Intracom.</div>
|
||||
<div class="infoData"><?php print substr($etab['TvaNumero'],0,2).' '.substr($etab['TvaNumero'],2,2).' '.substr($etab['TvaNumero'],-9); ?></div>
|
||||
<div class="infoData"><?=print substr($etab['TvaNumero'],0,2).' '.substr($etab['TvaNumero'],2,2).' '.substr($etab['TvaNumero'],-9); ?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Raison Sociale</div>
|
||||
<div class="infoData"><?php print $etab['Nom']; ?></div>
|
||||
<div class="infoData"><?=print $etab['Nom']; ?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Adresse</div>
|
||||
<div class="infoData"><?php print $etab['Adresse']; ?></div>
|
||||
<div class="infoData"><?=$etab['Adresse'].' '.$etab['CP'].' '.$etab['Ville']; ?></div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Téléphone <?php if (trim($etab['Tel'])==''){?><font color="Red">*</font><?php }?> / Fax</label>
|
||||
|
@ -170,7 +170,7 @@ else
|
||||
}
|
||||
|
||||
try {
|
||||
$O = $client->getIdentite($siret, $idEntreprise);
|
||||
$O = $client->getIdentite($siret, $idEntreprise, false);
|
||||
$etab=$O['result'];
|
||||
$tabEntrep=array();
|
||||
$tabEntrep['raisonSociale']=$etab['Nom'];
|
||||
|
@ -24,7 +24,7 @@ $client = new SoapClient(null, array( 'trace' => 1,
|
||||
|
||||
$tabEntrep=array();
|
||||
try {
|
||||
$O = $client->getIdentite($siren);
|
||||
$O = $client->getIdentite($siren, 0, false);
|
||||
$tabEntrep=$O['result'];
|
||||
|
||||
} catch (SoapFault $fault) {}
|
||||
|
@ -10,7 +10,7 @@ if($siret!='')
|
||||
'login' => $_SESSION['tabInfo']['login'],
|
||||
'password' => $_SESSION['tabInfo']['password'],
|
||||
));
|
||||
$O = $client->getIdentite($siret);
|
||||
$O = $client->getIdentite($siret, 0, false);
|
||||
$etab = $O['result'];
|
||||
$firephp->log($etab,'etab');
|
||||
if($etab['Siret']==$siret)
|
||||
|
Loading…
x
Reference in New Issue
Block a user