commit
5eb4901b1f
@ -21,15 +21,16 @@
|
|||||||
/**
|
/**
|
||||||
* \file htdocs/fourn/commande/info.php
|
* \file htdocs/fourn/commande/info.php
|
||||||
* \ingroup commande
|
* \ingroup commande
|
||||||
* \brief Fiche commande
|
* \brief Info page for Purchase Order / Supplier Order
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
// Load Dolibarr environment
|
// Load Dolibarr environment
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
|
||||||
if (isModEnabled('project')) {
|
if (isModEnabled('project')) {
|
||||||
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
||||||
}
|
}
|
||||||
@ -37,6 +38,7 @@ if (isModEnabled('project')) {
|
|||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array("suppliers", "orders", "companies", "stocks"));
|
$langs->loadLangs(array("suppliers", "orders", "companies", "stocks"));
|
||||||
|
|
||||||
|
// Get Paramters
|
||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
$ref = GETPOST('ref', 'alpha');
|
$ref = GETPOST('ref', 'alpha');
|
||||||
$action = GETPOST('action', 'aZ09');
|
$action = GETPOST('action', 'aZ09');
|
||||||
@ -79,6 +81,7 @@ if (empty($user->rights->fournisseur->commande->lire)) {
|
|||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Init Hooks
|
||||||
$hookmanager->initHooks(array('ordersuppliercardinfo'));
|
$hookmanager->initHooks(array('ordersuppliercardinfo'));
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user