37 global $langs, $conf, $user;
38 if (!empty($conf->expedition->enabled)) {
39 $langs->load(
"sendings");
41 $langs->load(
"orders");
47 $head[$h][0] = DOL_URL_ROOT.
"/admin/confexped.php";
48 $head[$h][1] = $langs->trans(
"Setup");
51 $head[$h][0] = DOL_URL_ROOT.
"/admin/expedition.php";
52 $head[$h][1] = $langs->trans(
"Shipment");
56 if (!empty($conf->global->MAIN_SUBMODULE_DELIVERY)) {
57 $head[$h][0] = DOL_URL_ROOT.
"/admin/delivery.php";
58 $head[$h][1] = $langs->trans(
"Receivings");
76 global $langs, $conf, $user;
77 $langs->load(
"sendings");
82 $head[$h][0] = DOL_URL_ROOT.
"/admin/confexped.php";
83 $head[$h][1] = $langs->trans(
"Setup");
84 $head[$h][2] =
'general';
88 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)) {
97 $head[$h][0] = DOL_URL_ROOT.
'/admin/expedition_extrafields.php';
98 $head[$h][1] = $langs->trans(
"ExtraFields");
99 $head[$h][2] =
'attributes_shipment';
103 if (!empty($conf->global->MAIN_SUBMODULE_EXPEDITION)) {
104 $head[$h][0] = DOL_URL_ROOT.
'/admin/expeditiondet_extrafields.php';
105 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
106 $head[$h][2] =
'attributeslines_shipment';
110 if (!empty($conf->global->MAIN_SUBMODULE_DELIVERY)) {
111 $head[$h][0] = DOL_URL_ROOT.
"/admin/delivery.php";
112 $head[$h][1] = $langs->trans(
"Receivings");
113 $head[$h][2] =
'receivings';
117 if (!empty($conf->global->MAIN_SUBMODULE_DELIVERY)) {
118 $head[$h][0] = DOL_URL_ROOT.
'/admin/delivery_extrafields.php';
119 $head[$h][1] = $langs->trans(
"ExtraFields");
120 $head[$h][2] =
'attributes_receivings';
124 if (!empty($conf->global->MAIN_SUBMODULE_DELIVERY)) {
125 $head[$h][0] = DOL_URL_ROOT.
'/admin/deliverydet_extrafields.php';
126 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
127 $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).