diff --git a/dev/generate-propale.php b/dev/generate-propale.php index 33a7d87263f..95adb48294d 100644 --- a/dev/generate-propale.php +++ b/dev/generate-propale.php @@ -28,7 +28,7 @@ require ("../htdocs/master.inc.php"); require_once ("../htdocs/facture.class.php"); require_once ("../htdocs/propal.class.php"); -require_once ("../htdocs/commande/commande.class.php"); +require_once (DOL_DOCUMENT_ROOT."/commande/commande.class.php"); require_once ("../htdocs/societe.class.php"); /* diff --git a/htdocs/admin/system/gen-commande.php b/htdocs/admin/system/gen-commande.php index 466c8722edd..a943b3a9040 100644 --- a/htdocs/admin/system/gen-commande.php +++ b/htdocs/admin/system/gen-commande.php @@ -67,7 +67,7 @@ $dates = array (mktime(12,0,0,1,3,2003), mktime(12,0,0,10,3,2003) ); -require DOL_DOCUMENT_ROOT."/commande/commande.class.php"; +require(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); $com = new Commande($db); diff --git a/htdocs/admin/system/gendata.php b/htdocs/admin/system/gendata.php index 1f7a0bd1de9..044aa66614c 100644 --- a/htdocs/admin/system/gendata.php +++ b/htdocs/admin/system/gendata.php @@ -243,7 +243,7 @@ if ($_GET["action"] == 'commande') mktime(12,0,0,12,13,2003), ); - require DOL_DOCUMENT_ROOT."/commande/commande.class.php"; + require(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); $com = new Commande($db); diff --git a/htdocs/boutique/commande/pre.inc.php b/htdocs/boutique/commande/pre.inc.php index 99342c7e2c4..34c61168788 100644 --- a/htdocs/boutique/commande/pre.inc.php +++ b/htdocs/boutique/commande/pre.inc.php @@ -20,7 +20,7 @@ * */ require("../../main.inc.php"); -require("./commande.class.php"); +require(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); function llxHeader($head = "", $urlp = "") { global $user, $conf; diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index faf499bb064..370d9dbf4d8 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -32,7 +32,7 @@ require_once("./pre.inc.php"); require_once("../contact.class.php"); require_once("../actioncomm.class.php"); -require_once("../commande/commande.class.php"); +require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); require_once("../contrat/contrat.class.php"); $langs->load("companies"); diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 7b68ed1b0af..f303337e415 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -41,7 +41,7 @@ if (!$user->rights->propale->lire) accessforbidden(); if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT.'/project.class.php'); -if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php'); +if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php'); require_once('./propal_model_pdf.class.php'); require_once('../propal.class.php'); require_once('../actioncomm.class.php'); diff --git a/htdocs/commande/pre.inc.php b/htdocs/commande/pre.inc.php index dc7e1189eff..fe2dd646d7f 100644 --- a/htdocs/commande/pre.inc.php +++ b/htdocs/commande/pre.inc.php @@ -29,7 +29,7 @@ */ require("../main.inc.php"); -require_once DOL_DOCUMENT_ROOT."/commande/commande.class.php"; +require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); $langs->load("orders"); diff --git a/htdocs/commande/stats/index.php b/htdocs/commande/stats/index.php index b9c872c9837..eef7e04acc8 100644 --- a/htdocs/commande/stats/index.php +++ b/htdocs/commande/stats/index.php @@ -29,7 +29,7 @@ */ require("./pre.inc.php"); -require("../commande.class.php"); +require(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); require("./commandestats.class.php"); $WIDTH=500; diff --git a/htdocs/commande/stats/month.php b/htdocs/commande/stats/month.php index ed5fa5af15f..254fce1dc2d 100644 --- a/htdocs/commande/stats/month.php +++ b/htdocs/commande/stats/month.php @@ -29,7 +29,7 @@ */ require("./pre.inc.php"); -require("../commande.class.php"); +require(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); require("./commandestats.class.php"); /* diff --git a/htdocs/compta/commande/pre.inc.php b/htdocs/compta/commande/pre.inc.php index 2cc3a2f0935..8bcd1d3b654 100644 --- a/htdocs/compta/commande/pre.inc.php +++ b/htdocs/compta/commande/pre.inc.php @@ -28,8 +28,7 @@ */ require("../../main.inc.php"); - -require_once DOL_DOCUMENT_ROOT.'/commande/commande.class.php'; +require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php'); $langs->load("orders"); diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 1a4b623cefd..32b826e5030 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -47,7 +47,7 @@ require_once "../paiement.class.php"; if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT."/project.class.php"); if ($conf->propal->enabled) require_once("../propal.class.php"); if ($conf->contrat->enabled) require_once("../contrat/contrat.class.php"); -if ($conf->commande->enabled) require_once("../commande/commande.class.php"); +if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); require_once DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php"; diff --git a/htdocs/compta/propal.php b/htdocs/compta/propal.php index cb7fc178944..53417cbf170 100644 --- a/htdocs/compta/propal.php +++ b/htdocs/compta/propal.php @@ -35,7 +35,7 @@ if (!$user->rights->propale->lire) accessforbidden(); if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT.'/project.class.php'); -if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php'); +if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php'); require_once(DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php"); require_once("../propal.class.php"); //require_once("../actioncomm.class.php"); diff --git a/htdocs/expedition/pre.inc.php b/htdocs/expedition/pre.inc.php index 90fa2cbcd03..4210571d5f8 100644 --- a/htdocs/expedition/pre.inc.php +++ b/htdocs/expedition/pre.inc.php @@ -30,8 +30,8 @@ require("../main.inc.php"); -require_once DOL_DOCUMENT_ROOT."/commande/commande.class.php"; -require_once DOL_DOCUMENT_ROOT."/expedition/expedition.class.php"; +require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); +require_once(DOL_DOCUMENT_ROOT."/expedition/expedition.class.php"); $langs->load("orders"); $langs->load("sendings"); diff --git a/htdocs/fourn/commande/pre.inc.php b/htdocs/fourn/commande/pre.inc.php index fcb8b6baba5..e5834444973 100644 --- a/htdocs/fourn/commande/pre.inc.php +++ b/htdocs/fourn/commande/pre.inc.php @@ -33,8 +33,8 @@ $langs->load("suppliers"); $langs->load("companies"); $user->getrights('fournisseur'); -require_once DOL_DOCUMENT_ROOT."/fourn/fournisseur.class.php"; -require_once DOL_DOCUMENT_ROOT."/fourn/fournisseur.commande.class.php"; +require_once(DOL_DOCUMENT_ROOT."/fourn/fournisseur.class.php"); +require_once(DOL_DOCUMENT_ROOT."/fourn/fournisseur.commande.class.php"); function llxHeader($head = "", $title = "", $help_url='', $addons='') { diff --git a/htdocs/fourn/fournisseur.class.php b/htdocs/fourn/fournisseur.class.php index e71fe0abf2e..72fb2da7278 100644 --- a/htdocs/fourn/fournisseur.class.php +++ b/htdocs/fourn/fournisseur.class.php @@ -32,8 +32,8 @@ \brief Classe permettant la gestion des fournisseur */ -include_once DOL_DOCUMENT_ROOT."/societe.class.php"; -include_once DOL_DOCUMENT_ROOT."/fourn/fournisseur.commande.class.php"; +include_once(DOL_DOCUMENT_ROOT."/societe.class.php"); +include_once(DOL_DOCUMENT_ROOT."/fourn/fournisseur.commande.class.php"); class Fournisseur extends Societe { var $db; @@ -127,8 +127,8 @@ class Fournisseur extends Societe { function ProductCommande($user, $product_id) { - include_once DOL_DOCUMENT_ROOT."/fourn/fournisseur.commande.class.php"; - include_once DOL_DOCUMENT_ROOT."/product.class.php"; + include_once(DOL_DOCUMENT_ROOT."/fourn/fournisseur.commande.class.php"); + include_once(DOL_DOCUMENT_ROOT."/product.class.php"); $commf = new CommandeFournisseur($this->db); diff --git a/htdocs/index.php b/htdocs/index.php index 52afe28fcb9..c95bbe7bac8 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -301,7 +301,7 @@ if ($conf->commercial->enabled || $conf->compta->enabled) // Nbre commandes clients à honorer if ($conf->commande->enabled && $user->rights->commande->lire) { - include_once("./commande/commande.class.php"); + include_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); $board=new Commande($db); $board->load_board(); diff --git a/htdocs/projet/commandes.php b/htdocs/projet/commandes.php index ad7b1922523..3e3a6aba30c 100644 --- a/htdocs/projet/commandes.php +++ b/htdocs/projet/commandes.php @@ -29,9 +29,9 @@ */ require("./pre.inc.php"); -require("../propal.class.php"); -require("../facture.class.php"); -require("../commande/commande.class.php"); +require_once("../propal.class.php"); +require_once("../facture.class.php"); +require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); $langs->load("projects"); $langs->load("companies"); diff --git a/htdocs/projet/facture.php b/htdocs/projet/facture.php index 2a82c6eacdf..b871c989517 100644 --- a/htdocs/projet/facture.php +++ b/htdocs/projet/facture.php @@ -29,9 +29,9 @@ */ require("./pre.inc.php"); -require("../propal.class.php"); -require("../facture.class.php"); -require("../commande/commande.class.php"); +require_once("../propal.class.php"); +require_once("../facture.class.php"); +require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); $langs->load("projects"); $langs->load("companies"); diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index b243778c3e2..9de9b486fef 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -29,9 +29,9 @@ */ require("./pre.inc.php"); -require("../propal.class.php"); -require("../facture.class.php"); -require("../commande/commande.class.php"); +require_once("../propal.class.php"); +require_once("../facture.class.php"); +require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); if (!$user->rights->projet->lire) accessforbidden(); diff --git a/htdocs/projet/propal.php b/htdocs/projet/propal.php index a629e86885f..bd5d5ee0fc1 100644 --- a/htdocs/projet/propal.php +++ b/htdocs/projet/propal.php @@ -29,9 +29,9 @@ */ require("./pre.inc.php"); -require("../propal.class.php"); -require("../facture.class.php"); -require("../commande/commande.class.php"); +require_once("../propal.class.php"); +require_once("../facture.class.php"); +require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); $langs->load("projects"); $langs->load("companies"); diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index 87a34bd097a..b82da67ac42 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -734,7 +734,7 @@ class Propal if ($statut == 2) { /* Propale signée */ - include_once DOL_DOCUMENT_ROOT . "/commande/commande.class.php"; + include_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); $this->create_commande($user); @@ -769,7 +769,7 @@ class Propal if ($this->statut == 2) { /* Propale signée */ - include_once DOL_DOCUMENT_ROOT . "/commande/commande.class.php"; + include_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); $commande = new Commande($this->db); $commande->create_from_propale($user, $this->id); return 1;