37 global $langs, $conf, $user;
38 if (!empty($conf->expedition->enabled)) $langs->load(
"sendings");
39 $langs->load(
"orders");
45 $head[$h][0] = DOL_URL_ROOT.
"/admin/confexped.php";
46 $head[$h][1] = $langs->trans(
"Setup");
49 $head[$h][0] = DOL_URL_ROOT.
"/admin/expedition.php";
50 $head[$h][1] = $langs->trans(
"Shipment");
54 if (!empty($conf->global->MAIN_SUBMODULE_DELIVERY))
56 $head[$h][0] = DOL_URL_ROOT.
"/admin/delivery.php";
57 $head[$h][1] = $langs->trans(
"Receivings");
75 global $langs, $conf, $user;
76 $langs->load(
"sendings");
81 $head[$h][0] = DOL_URL_ROOT.
"/admin/confexped.php";
82 $head[$h][1] = $langs->trans(
"Setup");
83 $head[$h][2] =
'general';
87 if (!empty($conf->global->MAIN_SUBMODULE_EXPEDITION))
89 $head[$h][0] = DOL_URL_ROOT.
"/admin/expedition.php";
90 $head[$h][1] = $langs->trans(
"Shipment");
91 $head[$h][2] =
'shipment';
96 if (!empty($conf->global->MAIN_SUBMODULE_EXPEDITION))
98 $head[$h][0] = DOL_URL_ROOT.
'/admin/expedition_extrafields.php';
99 $head[$h][1] = $langs->trans(
"ExtraFields");
100 $head[$h][2] =
'attributes_shipment';
104 if (!empty($conf->global->MAIN_SUBMODULE_EXPEDITION))
106 $head[$h][0] = DOL_URL_ROOT.
'/admin/expeditiondet_extrafields.php';
107 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
108 $head[$h][2] =
'attributeslines_shipment';
112 if (!empty($conf->global->MAIN_SUBMODULE_DELIVERY))
114 $head[$h][0] = DOL_URL_ROOT.
"/admin/delivery.php";
115 $head[$h][1] = $langs->trans(
"Receivings");
116 $head[$h][2] =
'receivings';
120 if (!empty($conf->global->MAIN_SUBMODULE_DELIVERY))
122 $head[$h][0] = DOL_URL_ROOT.
'/admin/delivery_extrafields.php';
123 $head[$h][1] = $langs->trans(
"ExtraFields");
124 $head[$h][2] =
'attributes_receivings';
128 if (!empty($conf->global->MAIN_SUBMODULE_DELIVERY))
130 $head[$h][0] = DOL_URL_ROOT.
'/admin/deliverydet_extrafields.php';
131 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
132 $head[$h][2] =
'attributeslines_receivings';
expedition_prepare_head(Expedition $object)
Prepare array with list of tabs.
expedition_admin_prepare_head()
Return array head with list of tabs to view object informations.
Class to manage shipments.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode= 'add')
Complete or removed entries into a head array (used to build tabs).