Clean code of setup of shipment module
This commit is contained in:
parent
283c9b966c
commit
301e311619
@ -79,11 +79,12 @@ function expedition_admin_prepare_head()
|
|||||||
$h = 0;
|
$h = 0;
|
||||||
$head = array();
|
$head = array();
|
||||||
|
|
||||||
|
/*
|
||||||
$head[$h][0] = DOL_URL_ROOT."/admin/confexped.php";
|
$head[$h][0] = DOL_URL_ROOT."/admin/confexped.php";
|
||||||
$head[$h][1] = $langs->trans("Setup");
|
$head[$h][1] = $langs->trans("Setup");
|
||||||
$head[$h][2] = 'general';
|
$head[$h][2] = 'general';
|
||||||
$h++;
|
$h++;
|
||||||
|
*/
|
||||||
|
|
||||||
if (!empty($conf->global->MAIN_SUBMODULE_EXPEDITION)) {
|
if (!empty($conf->global->MAIN_SUBMODULE_EXPEDITION)) {
|
||||||
$head[$h][0] = DOL_URL_ROOT."/admin/expedition.php";
|
$head[$h][0] = DOL_URL_ROOT."/admin/expedition.php";
|
||||||
@ -107,12 +108,10 @@ function expedition_admin_prepare_head()
|
|||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($conf->global->MAIN_SUBMODULE_DELIVERY)) {
|
$head[$h][0] = DOL_URL_ROOT."/admin/delivery.php";
|
||||||
$head[$h][0] = DOL_URL_ROOT."/admin/delivery.php";
|
$head[$h][1] = $langs->trans("Receivings");
|
||||||
$head[$h][1] = $langs->trans("Receivings");
|
$head[$h][2] = 'receivings';
|
||||||
$head[$h][2] = 'receivings';
|
$h++;
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($conf->global->MAIN_SUBMODULE_DELIVERY)) {
|
if (!empty($conf->global->MAIN_SUBMODULE_DELIVERY)) {
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/delivery_extrafields.php';
|
$head[$h][0] = DOL_URL_ROOT.'/admin/delivery_extrafields.php';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user