Ajout teste de la validit du code SIREN
This commit is contained in:
parent
d9973e010f
commit
73fcc0f4cf
@ -430,7 +430,20 @@ else
|
||||
if ($soc->url) { print '<a href="http://'.$soc->url.'">http://'.$soc->url.'</a>'; }
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans('ProfIdSiren').'</td><td><a target="_blank" href="http://www.societe.com/cgi-bin/recherche?rncs='.$soc->siren.'">'.$soc->siren.'</a> </td>';
|
||||
print '<tr><td>'.$langs->trans('ProfIdSiren').'</td><td>';
|
||||
|
||||
if ($soc->check_siren() == 0)
|
||||
{
|
||||
print '<a target="_blank" href="http://www.societe.com/cgi-bin/recherche?rncs='.$soc->siren.'">'.$soc->siren.'</a> ';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a class="error">'.$soc->siren;
|
||||
// Siren invalide
|
||||
print " Code Siren Invalide !</a>";
|
||||
}
|
||||
|
||||
print '</td>';
|
||||
|
||||
print '<td>'.$langs->trans('ProfIdSiret').'</td><td>'.$soc->siret.'</td></tr>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user