38 global $langs,
$conf, $user;
39 if (isModEnabled(
"shipping")) {
40 $langs->load(
"sendings");
42 $langs->load(
"orders");
47 $head[$h][0] = DOL_URL_ROOT.
"/admin/confexped.php";
48 $head[$h][1] = $langs->trans(
"Setup");
52 $head[$h][0] = DOL_URL_ROOT.
"/admin/expedition.php";
53 $head[$h][1] = $langs->trans(
"Shipment");
59 $head[$h][0] = DOL_URL_ROOT.
"/admin/delivery.php";
60 $head[$h][1] = $langs->trans(
"Receivings");
79 global $langs,
$conf, $user, $db;
80 $langs->load(
"sendings");
95 $extrafields->fetch_name_optionals_label(
'expedition');
96 $extrafields->fetch_name_optionals_label(
'expeditiondet');
98 $head[$h][0] = DOL_URL_ROOT.
"/admin/expedition.php";
99 $head[$h][1] = $langs->trans(
"Shipment");
100 $head[$h][2] =
'shipment';
103 $head[$h][0] = DOL_URL_ROOT.
'/admin/expedition_extrafields.php';
104 $head[$h][1] = $langs->trans(
"ExtraFields");
105 $nbExtrafields = $extrafields->attributes[
'expedition'][
'count'];
106 if ($nbExtrafields > 0) {
107 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
109 $head[$h][2] =
'attributes_shipment';
112 $head[$h][0] = DOL_URL_ROOT.
'/admin/expeditiondet_extrafields.php';
113 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
114 $nbExtrafields = $extrafields->attributes[
'expeditiondet'][
'count'];
115 if ($nbExtrafields > 0) {
116 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
118 $head[$h][2] =
'attributeslines_shipment';
122 $head[$h][0] = DOL_URL_ROOT.
"/admin/delivery.php";
123 $head[$h][1] = $langs->trans(
"Receivings");
124 $head[$h][2] =
'receivings';
128 $extrafields->fetch_name_optionals_label(
'delivery');
129 $extrafields->fetch_name_optionals_label(
'deliverydet');
131 $head[$h][0] = DOL_URL_ROOT.
'/admin/delivery_extrafields.php';
132 $head[$h][1] = $langs->trans(
"ExtraFields");
133 $nbExtrafields = $extrafields->attributes[
'delivery'][
'count'];
134 if ($nbExtrafields > 0) {
135 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
137 $head[$h][2] =
'attributes_receivings';
140 $head[$h][0] = DOL_URL_ROOT.
'/admin/deliverydet_extrafields.php';
141 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
142 $nbExtrafields = $extrafields->attributes[
'deliverydet'][
'count'];
143 if ($nbExtrafields > 0) {
144 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
146 $head[$h][2] =
'attributeslines_receivings';
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).