39 global $langs, $conf, $user;
41 $langs->load(
"sendings");
43 $langs->load(
"orders");
48 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
"/admin/confexped.php");
49 $head[$h][1] = $langs->trans(
"Setup");
53 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
"/admin/expedition.php");
54 $head[$h][1] = $langs->trans(
"Shipment");
60 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
"/admin/delivery.php");
61 $head[$h][1] = $langs->trans(
"Receivings");
80 global $langs, $conf, $user, $db;
81 $langs->load(
"sendings");
96 $extrafields->fetch_name_optionals_label(
'expedition');
97 $extrafields->fetch_name_optionals_label(
'expeditiondet');
99 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
"/admin/expedition.php");
100 $head[$h][1] = $langs->trans(
"Shipment");
101 $head[$h][2] =
'shipment';
104 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/admin/expedition_extrafields.php');
105 $head[$h][1] = $langs->trans(
"ExtraFields");
106 $nbExtrafields = $extrafields->attributes[
'expedition'][
'count'];
107 if ($nbExtrafields > 0) {
108 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
110 $head[$h][2] =
'attributes_shipment';
113 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/admin/expeditiondet_extrafields.php');
114 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
115 $nbExtrafields = $extrafields->attributes[
'expeditiondet'][
'count'];
116 if ($nbExtrafields > 0) {
117 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
119 $head[$h][2] =
'attributeslines_shipment';
123 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
"/admin/delivery.php");
124 $head[$h][1] = $langs->trans(
"Receivings");
125 $head[$h][2] =
'receivings';
129 $extrafields->fetch_name_optionals_label(
'delivery');
130 $extrafields->fetch_name_optionals_label(
'deliverydet');
132 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/admin/delivery_extrafields.php');
133 $head[$h][1] = $langs->trans(
"ExtraFields");
134 $nbExtrafields = $extrafields->attributes[
'delivery'][
'count'];
135 if ($nbExtrafields > 0) {
136 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
138 $head[$h][2] =
'attributes_receivings';
141 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/admin/deliverydet_extrafields.php');
142 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
143 $nbExtrafields = $extrafields->attributes[
'deliverydet'][
'count'];
144 if ($nbExtrafields > 0) {
145 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
147 $head[$h][2] =
'attributeslines_receivings';
if(! $sortfield) if(! $sortorder) $object
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 information.
dolBuildUrl($url, $params=[], $addtoken=false)
Return path of url.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.