diff --git a/htdocs/includes/modules/societe/modules_societe.class.php b/htdocs/includes/modules/societe/modules_societe.class.php
index 797d917da34..fbefae34f80 100644
--- a/htdocs/includes/modules/societe/modules_societe.class.php
+++ b/htdocs/includes/modules/societe/modules_societe.class.php
@@ -131,6 +131,7 @@ class ModeleThirdPartyCode
if ($type == -1) $s.=$langs->trans("Required").': '.yn(!$this->code_null).'
';
$s.=$langs->trans("CanBeModifiedIfOk").': '.yn($this->code_modifiable).'
';
$s.=$langs->trans("CanBeModifiedIfKo").': '.yn($this->code_modifiable_invalide).'
';
+ $s.=$langs->trans("AutomaticCode").': '.yn($this->code_auto).'
';
if ($type != -1) $s.=$langs->trans("Example").': '.$this->getExample($langs,$soc,1).'';
return $s;
}
diff --git a/htdocs/langs/en_US/companies.lang b/htdocs/langs/en_US/companies.lang
index 72de4006594..95f201bbb9e 100644
--- a/htdocs/langs/en_US/companies.lang
+++ b/htdocs/langs/en_US/companies.lang
@@ -228,3 +228,7 @@ AllocateCommercial=Allocate a commercial
SelectCountry=Select a country
SelectCompany=Select a third party
Organization=Organization
+
+# Tigre
+TigreNumRefModelDesc1=Return a customizable customer/supplier number according to a defined mask.
+MercureMaskCodes=You may enter all mask of numbering. In this mask, the following tags could be used:
{000000} correspond to a number which will be incremented on each customer/supplier. Enter as many zeros as the desired length of the counter. The counter will be completed by zeros at the left in order to have as many zeros as the mask.
{dd} days of the establishment code customer/supplier (01 à 31).
{mm} months of the establishment code customer/supplier (01 à 12).
{yy} or {yyyy} year over 2 or 4 numbers of the establishment of the code customer/supplier.
{pre} prefix of the third parties.
All other characters in the mask will remain intact.
You can use as separator characters following: slash, dash and backslash
Differentiating the elements used with a pipe | (altgr 6).
Spaces are not allowed.
Example of simple customer/supplier code
CC|(00000) will give CC00001
CF|-|(00000) will give CF-00001
Example on the 99th invoice of the third party SFR done 31/01/2007:
ABC-{yy}{mm}-{000000} will give ABC-0701-000099
{0000}-{pre}/{dd}/INV will give 0099-SFR/31/INV
diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang
index 7364000af0e..14b5207856a 100644
--- a/htdocs/langs/en_US/main.lang
+++ b/htdocs/langs/en_US/main.lang
@@ -389,6 +389,7 @@ Refresh=Refresh
BackToList=Back to list
CanBeModifiedIfOk=Can be modified if valid
CanBeModifiedIfKo=Can be modified if not valid
+AutomaticCode=Automatic code
NotManaged=Not managed
FeatureDisabled=Feature disabled
# Week day
diff --git a/htdocs/langs/fr_FR/companies.lang b/htdocs/langs/fr_FR/companies.lang
index 9b659c60e9a..761ee42db94 100644
--- a/htdocs/langs/fr_FR/companies.lang
+++ b/htdocs/langs/fr_FR/companies.lang
@@ -230,4 +230,8 @@ ConfirmDeleteFile=
AllocateCommercial=Affecter un commercial
SelectCountry=Sélectionner un pays
SelectCompany=Sélectionner un tiers
-Organization=Organisme
\ No newline at end of file
+Organization=Organisme
+
+# Tigre
+TigreNumRefModelDesc1=Renvoie un code client/fournisseur personnalisable selon un masque à définir.
+TigreMaskCodes=Vous pouvez saisir tout masque de numérotation. Dans ce masque, les balises suivantes peuvent etre utilisées:
{000000} correspond a un numéro qui sera incrémenté à chaque code client/fournisseur. Mettre autant de zéro que la longueur désirée du compteur. Le compteur sera complété par des 0 à gauche afin d'avoir autant de zéro que dans le masque.
{dd} jour de la création du code client/fournisseur (01 à 31).
{mm} mois de la création du code client/fournisseur (01 à 12).
{yy} et/ou {yyyy} annee, sur 2 ou 4 chiffres, de la création du code client/fournisseur.
{pre} prefix du tiers.
Tout autre caractère dans le masque sera laissé inchangé.
Vous pouvez utiliser les caractères suivant comme séparateur : slash, anti-slash et tiret
Différencier les éléments utilisés avec un pipe | (altgr+6).
Les espaces ne sont pas permis.
Exemple de code client/fournisseur simple
CC|{00000} donnera CC00001
CF|-|{00000} donnera CF-00001
Exemple sur le 99eme code client/fournisseur fait le 31/01/2007:
ABC|-|{yy}|{mm}|-|{000000} donnera ABC-0701-000099
{0000}|-|{pre}|/|{dd}|/|INV donnera 0099-SFR/31/INV
diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang
index a91d62e48a8..bf852f7e153 100644
--- a/htdocs/langs/fr_FR/main.lang
+++ b/htdocs/langs/fr_FR/main.lang
@@ -390,6 +390,7 @@ Refresh=Rafraichir
BackToList=Retour liste
CanBeModifiedIfOk=Peut être modifié si valide
CanBeModifiedIfKo=Peut être modifié si invalide
+AutomaticCode=Création automatique du code
NotManaged=Non géré
FeatureDisabled=Fonction désactivée
# Week day