Fix: Limit of RCS too small

This commit is contained in:
Laurent Destailleur 2010-02-24 14:48:55 +00:00
parent 40abbaa622
commit 4b5bcaa4c7
2 changed files with 9 additions and 9 deletions

View File

@ -558,7 +558,7 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create')
print '</td>'; print '</td>';
} }
else print '<td>&nbsp;</td><td>&nbsp;</td>'; else print '<td>&nbsp;</td><td>&nbsp;</td>';
// IdProf4 (NU pour France) // IdProf4 (RCS pour France)
$idprof=$langs->transcountry('ProfId4',$soc->pays_code); $idprof=$langs->transcountry('ProfId4',$soc->pays_code);
if ($idprof!='-') if ($idprof!='-')
{ {

View File

@ -2023,7 +2023,7 @@ class Societe extends CommonObject
if ($idprof==1) $formlength=9; if ($idprof==1) $formlength=9;
if ($idprof==2) $formlength=14; if ($idprof==2) $formlength=14;
if ($idprof==3) $formlength=5; // 4 chiffres et 1 lettre depuis janvier if ($idprof==3) $formlength=5; // 4 chiffres et 1 lettre depuis janvier
if ($idprof==4) $formlength=12; if ($idprof==4) $formlength=32; // No maximum as we need to include a town name in this id
} }
$selected=$preselected; $selected=$preselected;
if (! $selected && $idprof==1) $selected=$this->siren; if (! $selected && $idprof==1) $selected=$this->siren;