diff --git a/htdocs/soc.php b/htdocs/soc.php
index 492396b4979..0076d6b89a0 100644
--- a/htdocs/soc.php
+++ b/htdocs/soc.php
@@ -184,11 +184,11 @@ if ($_GET["action"] == 'create')
print '
| '.$langs->trans('CustomerCode').' | |
';
print '| '.$langs->trans('Web').' | |
';
- print '| '.$langs->trans('ProfIdSiren').' | | ';
- print ''.$langs->trans('ProfIdSiret').' | |
';
+ print '| '.$langs->transcountry('ProfId1',$soc->pays_code).' | | ';
+ print ''.$langs->transcountry('ProfId2',$soc->pays_code).' | |
';
+ print '| '.$langs->transcountry('ProfId3',$soc->pays_code).' | | |
';
- print '| '.$langs->trans('ProfIdApe').' | | ';
- print 'Capital | '.$conf->monnaie.' |
';
+ print '| '.$langs->trans('Capital').' | '.$conf->monnaie.' |
';
print '| Forme juridique | ';
$form->select_forme_juridique($soc->forme_juridique_code);
@@ -198,7 +198,7 @@ if ($_GET["action"] == 'create')
$form->select_array("effectif_id",$soc->effectif_array(), $soc->effectif_id);
print ' |
';
- print '| '.$langs->trans('TVAIntra').' | ';
+ print ' |
| '.$langs->trans('TVAIntra').' | ';
print '';
print '';
@@ -226,7 +226,7 @@ elseif ($_GET["action"] == 'edit')
* Fiche societe en mode edition
*/
- print_titre("Edition de la société");
+ print_titre($langs->trans("EditCompany"));
if ($_GET["socid"])
{
@@ -282,17 +282,17 @@ elseif ($_GET["action"] == 'edit')
print $soc->code_client;
}
- print ' | Type | ';
+ print ' | '.$langs->trans("Type").' | ';
$form->select_array("typent_id",$soc->typent_array(), $soc->typent_id);
print ' |
';
print '| '.$langs->trans('Web').' | |
';
- print '| '.$langs->trans('ProfIdSiren').' | | ';
- print ''.$langs->trans('ProfIdSiret').' | |
';
+ print '| '.$langs->transcountry('ProfId1',$soc->pays_code).' | | ';
+ print ''.$langs->transcountry('ProfId2',$soc->pays_code).' | |
';
- print '| '.$langs->trans('ProfIdApe').' | | ';
- print 'Capital | '.$conf->monnaie.' |
';
+ print '| '.$langs->transcountry('ProfId3',$soc->pays_code).' | | |
';
+ print '| '.$langs->trans("Capital").' | '.$conf->monnaie.' |
';
print '| Forme juridique | ';
$form->select_forme_juridique($soc->forme_juridique_code);
@@ -302,7 +302,7 @@ elseif ($_GET["action"] == 'edit')
$form->select_array("effectif_id",$soc->effectif_array(), $soc->effectif_id);
print ' |
';
- print '| '.$langs->trans('TVAIntra').' | ';
+ print ' |
| '.$langs->trans('TVAIntra').' | ';
print '';
print '';
@@ -430,8 +430,9 @@ else
if ($soc->url) { print 'http://'.$soc->url.''; }
print ' |
';
- print '| '.$langs->trans('ProfIdSiren').' | ';
-
+ print ' |
| '.$langs->transcountry('ProfId1',$soc->pays_code).' | ';
+ // Si société FR et siren fourni, on le vérifie
+ if ($soc->pays_code == "FR" && $soc->siren) {
if ($soc->check_siren() == 0)
{
print ''.$soc->siren.' ';
@@ -442,18 +443,22 @@ else
// Siren invalide
print " Code Siren Invalide !";
}
-
+ }
+ else {
+ print $soc->siren;
+ }
print ' | ';
- print ''.$langs->trans('ProfIdSiret').' | '.$soc->siret.' |
';
+ print ''.$langs->transcountry('ProfId2',$soc->pays_code).' | '.$soc->siret.' | ';
- print '| '.$langs->trans('ProfIdApe').' | '.$soc->ape.' | ';
- print 'Capital | '.$soc->capital.' '.$conf->monnaie.' |
';
+ print '| '.$langs->transcountry('ProfId3',$soc->pays_code).' | '.$soc->ape.' | |
';
+
+ print '| '.$langs->trans('Capital').' | '.$soc->capital.' '.$conf->monnaie.' |
';
print '| Forme juridique | '.$soc->forme_juridique.' |
';
print '| Effectif | '.$soc->effectif.' |
';
- print '| '.$langs->trans('TVAIntra').' | ';
+ print ' |
| '.$langs->trans('TVAIntra').' | ';
print $soc->tva_intra;
print ' |
';