Trad: Traduction identifants professionnels
This commit is contained in:
parent
27fbe35b6f
commit
5603130f61
@ -91,14 +91,37 @@ if ($_GET["action"] == 'edit')
|
|||||||
print '<tr class="liste_titre"><td>'.$langs->trans("CompanyIds").'</td><td>'.$langs->trans("Value").'</td></tr>';
|
print '<tr class="liste_titre"><td>'.$langs->trans("CompanyIds").'</td><td>'.$langs->trans("Value").'</td></tr>';
|
||||||
|
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
print '<tr class="impair"><td width="50%">'.$langs->trans("ProfIdSiret").'</td><td>';
|
|
||||||
print '<input name="siret" size="20" value="' . MAIN_INFO_SIRET . '"></td></tr>';
|
|
||||||
|
|
||||||
print '<tr class="pair"><td width="50%">'.$langs->trans("ProfIdSiren").'</td><td>';
|
// Recupere code pays
|
||||||
print '<input name="siren" size="20" value="' . MAIN_INFO_SIREN . '"></td></tr>';
|
$code_pays=substr($langs->defaultlang,-2); // Par defaut, pays de la localisation
|
||||||
|
$sql = "SELECT code from ".MAIN_DB_PREFIX."c_pays";
|
||||||
|
$sql .= " WHERE rowid = ".MAIN_INFO_SOCIETE_PAYS;
|
||||||
|
$result=$db->query($sql);
|
||||||
|
if ($result) {
|
||||||
|
$obj = $db->fetch_object();
|
||||||
|
if ($obj->code) $code_pays=$obj->code;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
dolibarr_print_error($db);
|
||||||
|
}
|
||||||
|
|
||||||
print '<tr class="impair"><td width="50%">'.$langs->trans("ProfIdApe").'</td><td>';
|
if ($langs->transcountry("ProfId1",$code_pays) != '-')
|
||||||
print '<input name="ape" size="20" value="' . MAIN_INFO_APE . '"></td></tr>';
|
{
|
||||||
|
print '<tr class="impair"><td width="50%">'.$langs->transcountry("ProfId1",$code_pays).'</td><td>';
|
||||||
|
print '<input name="siret" size="20" value="' . MAIN_INFO_SIRET . '"></td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($langs->transcountry("ProfId2",$code_pays) != '-')
|
||||||
|
{
|
||||||
|
print '<tr class="pair"><td width="50%">'.$langs->transcountry("ProfId2",$code_pays).'</td><td>';
|
||||||
|
print '<input name="siren" size="20" value="' . MAIN_INFO_SIREN . '"></td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($langs->transcountry("ProfId3",$code_pays) != '-')
|
||||||
|
{
|
||||||
|
print '<tr class="impair"><td width="50%">'.$langs->transcountry("ProfId3",$code_pays).'</td><td>';
|
||||||
|
print '<input name="ape" size="20" value="' . MAIN_INFO_APE . '"></td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
print '<tr class="pair"><td width="50%">'.$langs->trans("TVAIntra").'</td><td>';
|
print '<tr class="pair"><td width="50%">'.$langs->trans("TVAIntra").'</td><td>';
|
||||||
print '<input name="tva" size="20" value="' . MAIN_INFO_TVAINTRA . '"></td></tr>';
|
print '<input name="tva" size="20" value="' . MAIN_INFO_TVAINTRA . '"></td></tr>';
|
||||||
@ -136,14 +159,36 @@ else
|
|||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("CompanyIds").'</td><td>'.$langs->trans("Value").'</td></tr>';
|
print '<tr class="liste_titre"><td>'.$langs->trans("CompanyIds").'</td><td>'.$langs->trans("Value").'</td></tr>';
|
||||||
|
|
||||||
print '<tr class="impair"><td width="50%">'.$langs->trans("ProfIdSiret").'</td><td>';
|
// Recupere code pays
|
||||||
print MAIN_INFO_SIRET . '</td></tr>';
|
$code_pays=substr($langs->defaultlang,-2); // Par defaut, pays de la localisation
|
||||||
|
$sql = "SELECT code from ".MAIN_DB_PREFIX."c_pays";
|
||||||
|
$sql .= " WHERE rowid = ".MAIN_INFO_SOCIETE_PAYS;
|
||||||
|
$result=$db->query($sql);
|
||||||
|
if ($result) {
|
||||||
|
$obj = $db->fetch_object();
|
||||||
|
if ($obj->code) $code_pays=$obj->code;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
dolibarr_print_error($db);
|
||||||
|
}
|
||||||
|
|
||||||
print '<tr class="pair"><td width="50%">'.$langs->trans("ProfIdSiren").'</td><td>';
|
if ($langs->transcountry("ProfId1",$code_pays) != '-')
|
||||||
print MAIN_INFO_SIREN . '</td></tr>';
|
{
|
||||||
|
print '<tr class="impair"><td width="50%">'.$langs->transcountry("ProfId1",$code_pays).'</td><td>';
|
||||||
|
print MAIN_INFO_SIRET . '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
print '<tr class="impair"><td width="50%">'.$langs->trans("ProfIdApe").'</td><td>';
|
if ($langs->transcountry("ProfId2",$code_pays) != '-')
|
||||||
print MAIN_INFO_APE . '</td></tr>';
|
{
|
||||||
|
print '<tr class="pair"><td width="50%">'.$langs->transcountry("ProfId2",$code_pays).'</td><td>';
|
||||||
|
print MAIN_INFO_SIREN . '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($langs->transcountry("ProfId3",$code_pays) != '-')
|
||||||
|
{
|
||||||
|
print '<tr class="impair"><td width="50%">'.$langs->transcountry("ProfId3",$code_pays).'</td><td>';
|
||||||
|
print MAIN_INFO_APE . '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
print '<tr class="pair"><td>'.$langs->trans("TVAIntra").'</td><td>' . MAIN_INFO_TVAINTRA . '</td></tr>';
|
print '<tr class="pair"><td>'.$langs->trans("TVAIntra").'</td><td>' . MAIN_INFO_TVAINTRA . '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
@ -35,8 +35,8 @@ ProfId1FR=SIREN
|
|||||||
ProfId2FR=SIRET
|
ProfId2FR=SIRET
|
||||||
ProfId3FR=NAF (Old APE)
|
ProfId3FR=NAF (Old APE)
|
||||||
ProfId1BE=Professionnel number
|
ProfId1BE=Professionnel number
|
||||||
ProfId2BE=
|
ProfId2BE=-
|
||||||
ProfId3BE=
|
ProfId3BE=-
|
||||||
TVAIntra=Intracommunautary VAT
|
TVAIntra=Intracommunautary VAT
|
||||||
ProspectCustomer=Prospect / Customer
|
ProspectCustomer=Prospect / Customer
|
||||||
Prospect=Prospect
|
Prospect=Prospect
|
||||||
|
|||||||
@ -35,8 +35,8 @@ ProfId1FR=SIREN
|
|||||||
ProfId2FR=SIRET
|
ProfId2FR=SIRET
|
||||||
ProfId3FR=NAF (Ex APE)
|
ProfId3FR=NAF (Ex APE)
|
||||||
ProfId1BE=No professionnel
|
ProfId1BE=No professionnel
|
||||||
ProfId2BE=
|
ProfId2BE=-
|
||||||
ProfId3BE=
|
ProfId3BE=-
|
||||||
TVAIntra=Numéro de TVA Intracommunautaire
|
TVAIntra=Numéro de TVA Intracommunautaire
|
||||||
ProspectCustomer=Prospect / Client
|
ProspectCustomer=Prospect / Client
|
||||||
Prospect=Prospect
|
Prospect=Prospect
|
||||||
|
|||||||
@ -35,8 +35,8 @@ ProfId1FR=SIREN
|
|||||||
ProfId2FR=SIRET
|
ProfId2FR=SIRET
|
||||||
ProfId3FR=NAF (Ex APE)
|
ProfId3FR=NAF (Ex APE)
|
||||||
ProfId1BE=No professionnel
|
ProfId1BE=No professionnel
|
||||||
ProfId2BE=
|
ProfId2BE=-
|
||||||
ProfId3BE=
|
ProfId3BE=-
|
||||||
TVAIntra=Numéro de TVA Intracommunautaire
|
TVAIntra=Numéro de TVA Intracommunautaire
|
||||||
ProspectCustomer=Prospect / Client
|
ProspectCustomer=Prospect / Client
|
||||||
Prospect=Prospect
|
Prospect=Prospect
|
||||||
|
|||||||
@ -21,8 +21,8 @@ ProfId1FR=SIREN
|
|||||||
ProfId2FR=SIRET
|
ProfId2FR=SIRET
|
||||||
ProfId3FR=NAF (Old APE)
|
ProfId3FR=NAF (Old APE)
|
||||||
ProfId1BE=Professionnel number
|
ProfId1BE=Professionnel number
|
||||||
ProfId2BE=
|
ProfId2BE=-
|
||||||
ProfId3BE=
|
ProfId3BE=-
|
||||||
TVAIntra=Intracommunautary VAT
|
TVAIntra=Intracommunautary VAT
|
||||||
ProspectCustomer=Vooruitzicht / Klant
|
ProspectCustomer=Vooruitzicht / Klant
|
||||||
Prospect=Vooruitzicht
|
Prospect=Vooruitzicht
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user