From 84727aa0adcc9b40251a270ffbbd3e1c31482d01 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 24 Jul 2006 11:44:28 +0000 Subject: [PATCH] Uniformisation des constantes --- htdocs/fourn/commande/modules/pdf/pdf_muscadet.modules.php | 2 +- htdocs/includes/modules/commande/pdf_einstein.modules.php | 2 +- htdocs/includes/modules/facture/pdf_crabe.modules.php | 2 +- htdocs/includes/modules/modCommande.class.php | 2 +- htdocs/includes/modules/modPropale.class.php | 2 +- htdocs/includes/modules/propale/pdf_propale_azur.modules.php | 2 +- htdocs/livraison/mods/pdf/pdf_typhon.modules.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/fourn/commande/modules/pdf/pdf_muscadet.modules.php b/htdocs/fourn/commande/modules/pdf/pdf_muscadet.modules.php index 1bb34496258..2c3b1e5f629 100644 --- a/htdocs/fourn/commande/modules/pdf/pdf_muscadet.modules.php +++ b/htdocs/fourn/commande/modules/pdf/pdf_muscadet.modules.php @@ -218,7 +218,7 @@ class pdf_muscadet extends ModelePDFCommandesSuppliers } // Ajoute description du produit - if ($conf->global->COMMANDE_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC) + if ($conf->global->COM_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC) { if ($com->lignes[$i]->product_desc&&$com->lignes[$i]->product_desc!=$fac->lignes[$i]->libelle&&$com->lignes[$i]->product_desc!=$com->lignes[$i]->desc) { diff --git a/htdocs/includes/modules/commande/pdf_einstein.modules.php b/htdocs/includes/modules/commande/pdf_einstein.modules.php index 67419640939..2a34bdce6bd 100644 --- a/htdocs/includes/modules/commande/pdf_einstein.modules.php +++ b/htdocs/includes/modules/commande/pdf_einstein.modules.php @@ -213,7 +213,7 @@ class pdf_einstein extends ModelePDFCommandes } // Ajoute description du produit - if ($conf->global->COM_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC) + if ($conf->global->COMMANDE_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC) { if ($com->lignes[$i]->product_desc&&$com->lignes[$i]->product_desc!=$fac->lignes[$i]->libelle&&$com->lignes[$i]->product_desc!=$com->lignes[$i]->desc) { diff --git a/htdocs/includes/modules/facture/pdf_crabe.modules.php b/htdocs/includes/modules/facture/pdf_crabe.modules.php index 7a92caebe4b..40d4f7b289b 100644 --- a/htdocs/includes/modules/facture/pdf_crabe.modules.php +++ b/htdocs/includes/modules/facture/pdf_crabe.modules.php @@ -237,7 +237,7 @@ class pdf_crabe extends ModelePDFFactures } // Ajoute description du produit - if ($conf->global->FAC_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC) + if ($conf->global->FACTURE_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC) { if ($fac->lignes[$i]->product_desc&&$fac->lignes[$i]->product_desc!=$fac->lignes[$i]->libelle&&$fac->lignes[$i]->product_desc!=$fac->lignes[$i]->desc) { diff --git a/htdocs/includes/modules/modCommande.class.php b/htdocs/includes/modules/modCommande.class.php index 42a35a1b19b..18433fc9081 100644 --- a/htdocs/includes/modules/modCommande.class.php +++ b/htdocs/includes/modules/modCommande.class.php @@ -85,7 +85,7 @@ class modCommande extends DolibarrModules $this->const[1][3] = 'Nom du gestionnaire de numérotation des commandes'; $this->const[1][4] = 0; - $this->const[2][0] = "COMMANDE_ADD_PROD_DESC"; + $this->const[2][0] = "COM_ADD_PROD_DESC"; $this->const[2][1] = "chaine"; $this->const[2][2] = "0"; $this->const[2][3] = "Mettre à 1 pour voir la description d\'un produit dans une commande"; diff --git a/htdocs/includes/modules/modPropale.class.php b/htdocs/includes/modules/modPropale.class.php index 3dc11e1e375..3dce3e0ad65 100644 --- a/htdocs/includes/modules/modPropale.class.php +++ b/htdocs/includes/modules/modPropale.class.php @@ -84,7 +84,7 @@ class modPropale extends DolibarrModules $this->const[1][3] = 'Nom du gestionnaire de numérotation des propales'; $this->const[1][4] = 0; - $this->const[2][0] = "PROPALE_ADD_PROD_DESC"; + $this->const[2][0] = "PROP_ADD_PROD_DESC"; $this->const[2][1] = "chaine"; $this->const[2][2] = "0"; $this->const[2][3] = "Mettre à 1 pour voir la description d\'un produit dans une propale"; diff --git a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php index 852530f6b1c..1c72a40b6d5 100644 --- a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php +++ b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php @@ -238,7 +238,7 @@ class pdf_propale_azur extends ModelePDFPropales } // Ajoute description complète du produit - if ($conf->global->PROP_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC) + if ($conf->global->PROPAL_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC) { if ($propale->lignes[$i]->product_desc && $propale->lignes[$i]->product_desc!=$propale->lignes[$i]->libelle && $propale->lignes[$i]->product_desc!=$propale->lignes[$i]->desc) { diff --git a/htdocs/livraison/mods/pdf/pdf_typhon.modules.php b/htdocs/livraison/mods/pdf/pdf_typhon.modules.php index b3a586702ba..9a3e928802d 100644 --- a/htdocs/livraison/mods/pdf/pdf_typhon.modules.php +++ b/htdocs/livraison/mods/pdf/pdf_typhon.modules.php @@ -219,7 +219,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder } // Ajoute description du produit - if ($conf->global->COM_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC) + if ($conf->global->COMMANDE_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC) { if ($lignesdelivery[$i]->product_desc&&$lignesdelivery[$i]->product_desc!=$lignesdelivery[$i]->libelle&&$lignesdelivery[$i]->product_desc!=$lignesdelivery[$i]->desc) {