# 3.6- Constantes cachées

<span style="color: rgb(0, 0, 0);">Ici il s'agit de **<span style="color: rgb(24, 139, 175);">constante dite cachée</span>**, car elle ne sont pas une option intégré à la configuration du module.</span>

<span style="color: rgb(0, 0, 0);">Il s'agit principalement de paramètres réservés pour les développeurs et dépannage avancé uniquement.  
</span>

<span style="color: rgb(0, 0, 0);">Si l'une d’elle vous convient dans votre utilisation du module, vous pouvez aller dans **Accueil** &gt; **C**onfiguration &gt; **D**ivers.</span>

<span style="color: rgb(0, 0, 0);"><span style="color: rgb(24, 139, 175);">**Indiquez** </span>le **<span style="color: rgb(24, 139, 175);">nom </span>**de la constante ça <span style="color: rgb(24, 139, 175);">**valeur 1 pour l'activer 0 pour la désactiver**</span>, vous pouvez mettre un commentaire (optionnel) puis cliquez sur <span style="color: rgb(24, 139, 175);">**Ajouter**</span>.</span>

<span style="color: rgb(0, 0, 0);">Pour **<span style="color: rgb(24, 139, 175);">modifier une valeur de la constante,</span>** il faut suffit de changer la valeur et de cliquer en bas à droite en bas du tableau sur **<span style="color: rgb(24, 139, 175);">modifier </span>**(la case de droite se coche automatiquement).</span>

<span style="color: rgb(0, 0, 0);">Pour**<span style="color: rgb(24, 139, 175);"> supprimer une constante</span>**, coché la case de droite et cliquer à droite en bas du tableau sur <span style="color: rgb(24, 139, 175);">**Supprimer**</span>.</span>

<table border="1" id="bkmrk-les-constantes-cach%C3%A9" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 41.5216%;"></col><col style="width: 22.1202%;"></col><col style="width: 36.3314%;"></col></colgroup><tbody><tr><td class="align-center" colspan="3" style="background-color: rgb(236, 240, 241); vertical-align: middle;"><span style="color: rgb(0, 0, 0);">**Les constantes cachées**</span>

<span style="color: rgb(0, 0, 0);">**Lié à l'utilisation du module en général**</span>

  
</td></tr><tr><td class="align-center" style="background-color: rgb(236, 240, 241);"><span style="color: rgb(0, 0, 0);">**Nom de la constante**</span></td><td class="align-center" style="background-color: rgb(236, 240, 241);"><span style="color: rgb(0, 0, 0);">**Valeur à noter**</span></td><td class="align-center" style="background-color: rgb(236, 240, 241);"><span style="color: rgb(0, 0, 0);">**Ce que ça fait**</span></td></tr><tr><td><span style="color: rgb(0, 0, 0);">RELATEDPRODUCTS\_MILESTONE\_CATEGORY\_LABEL</span></td><td><span style="color: rgb(0, 0, 0);">Label, </span>**<span style="color: rgb(24, 139, 175);">0</span>**

<span style="color: rgb(0, 0, 0);">Description,</span> **<span style="color: rgb(24, 139, 175);">1</span>**

<span style="color: rgb(0, 0, 0);">Label + Description,</span> **<span style="color: rgb(24, 139, 175);">2</span>**

**<span style="color: rgb(186, 55, 42);">Ne marquer que le chiffre.</span>**

</td><td><span style="color: rgb(0, 0, 0);">Vous pouvez choisir d’afficher soit le label, soit la description soit les deux.</span></td></tr><tr><td><span style="color: rgb(0, 0, 0);">RELATEDPRODUCTS\_ADD\_MILESTONE\_CATEGORY</span></td><td class="align-center" style="vertical-align: middle;"><span style="color: rgb(0, 0, 0);">1 ou 0</span>  
</td><td><span style="color: rgb(0, 0, 0);">Permet de rajouter la catégorie (des produits associés) en tant que ligne titre dans les documents pour les clients (propositions commerciale, commandes, et factures).</span></td></tr><tr><td><span style="color: rgb(0, 0, 0);">RELATED\_PRODUCTS\_REMOVE\_EOL</span>  
</td><td class="align-center"><span style="color: rgb(0, 0, 0);">1 ou 0</span>  
</td><td><span style="color: rgb(0, 0, 0);">Permet de supprimer automatiquement les produits qui ne sont plus en achat de la liste des produits associés quand il n'y a plus de stock ou qu'il ne sont plus en vente.</span>

<span style="color: rgb(0, 0, 0);">Agit a la validation d'une commande Dolibarr et TakePos, sur les mouvements de stock et sur la modification du produit.</span>

</td></tr></tbody></table>