diff --git a/htdocs/commande/document.php b/htdocs/commande/document.php index 4a70db5be14..c097e403d5e 100644 --- a/htdocs/commande/document.php +++ b/htdocs/commande/document.php @@ -30,6 +30,7 @@ require("../main.inc.php"); require_once(DOL_DOCUMENT_ROOT.'/lib/order.lib.php'); require_once(DOL_DOCUMENT_ROOT."/lib/files.lib.php"); require_once(DOL_DOCUMENT_ROOT."/html.formfile.class.php"); +require_once(DOL_DOCUMENT_ROOT ."/commande/commande.class.php"); if (!$user->rights->commande->lire) accessforbidden(); diff --git a/htdocs/commande/note.php b/htdocs/commande/note.php index 1890c17c901..06d076e6246 100644 --- a/htdocs/commande/note.php +++ b/htdocs/commande/note.php @@ -27,6 +27,7 @@ require("../main.inc.php"); require_once(DOL_DOCUMENT_ROOT.'/lib/order.lib.php'); +require_once(DOL_DOCUMENT_ROOT ."/commande/commande.class.php"); $socid=isset($_GET["socid"])?$_GET["socid"]:isset($_POST["socid"])?$_POST["socid"]:""; diff --git a/htdocs/compta/commande/fiche.php b/htdocs/compta/commande/fiche.php index 5d75106d80d..a6aba00b5e5 100644 --- a/htdocs/compta/commande/fiche.php +++ b/htdocs/compta/commande/fiche.php @@ -29,6 +29,7 @@ require("../../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/html.formfile.class.php"); require_once(DOL_DOCUMENT_ROOT."/lib/order.lib.php"); require_once(DOL_DOCUMENT_ROOT."/lib/sendings.lib.php"); +require_once(DOL_DOCUMENT_ROOT ."/commande/commande.class.php"); if ($conf->propal->enabled) require_once(DOL_DOCUMENT_ROOT."/comm/propal/propal.class.php"); if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT."/projet/project.class.php");