diff --git a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php
index b7a3801a9cd..2e155c04df8 100644
--- a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php
+++ b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php
@@ -72,27 +72,32 @@ class mod_facture_fournisseur_tulip extends ModeleNumRefSuppliersInvoices
$tooltip.=$langs->trans("GenericMaskCodes5");
// Parametrage du prefix
- $texte.= '
| '.$langs->trans("Mask").' ('.$langs->trans("InvoiceStandard").'): | ';
+ $texte.= '
| '.$langs->trans("Mask");
+ //$texte.= ' ('.$langs->trans("InvoiceStandard").')';
+ $texte.= ': | ';
$texte.= ''.$form->textwithpicto('',$tooltip,1,1).' | ';
$texte.= ' | ';
$texte.= '
';
- // Parametrage du prefix des replacement
- $texte.= '| '.$langs->trans("Mask").' ('.$langs->trans("InvoiceReplacement").'): | ';
- $texte.= ''.$form->textwithpicto('',$tooltip,1,1).' | ';
- $texte.= '
';
+ if ($conf->global->MAIN_FEATURE_LEVEL >= 2)
+ {
+ // Parametrage du prefix des replacement
+ $texte.= '| '.$langs->trans("Mask").' ('.$langs->trans("InvoiceReplacement").'): | ';
+ $texte.= ''.$form->textwithpicto('',$tooltip,1,1).' | ';
+ $texte.= '
';
- // Parametrage du prefix des avoirs
- $texte.= '| '.$langs->trans("Mask").' ('.$langs->trans("InvoiceAvoir").'): | ';
- $texte.= ''.$form->textwithpicto('',$tooltip,1,1).' | ';
- $texte.= '
';
+ // Parametrage du prefix des avoirs
+ $texte.= '| '.$langs->trans("Mask").' ('.$langs->trans("InvoiceAvoir").'): | ';
+ $texte.= ''.$form->textwithpicto('',$tooltip,1,1).' | ';
+ $texte.= '
';
- // Parametrage du prefix des acomptes
- $texte.= '| '.$langs->trans("Mask").' ('.$langs->trans("InvoiceDeposit").'): | ';
- $texte.= ''.$form->textwithpicto('',$tooltip,1,1).' | ';
- $texte.= '
';
+ // Parametrage du prefix des acomptes
+ $texte.= '| '.$langs->trans("Mask").' ('.$langs->trans("InvoiceDeposit").'): | ';
+ $texte.= ''.$form->textwithpicto('',$tooltip,1,1).' | ';
+ $texte.= '
';
+ }
$texte.= '';
$texte.= '';
@@ -137,7 +142,7 @@ class mod_facture_fournisseur_tulip extends ModeleNumRefSuppliersInvoices
// Get Mask value
$mask = '';
- if (is_object($object) && $object->type == 1)
+ if (is_object($object) && $object->type == 1)
{
$mask=$conf->global->SUPPLIER_REPLACEMENT_TULIP_MASK;
if (! $mask)