76 global $langs,
$conf, $user, $db;
77 $langs->load(
"sendings");
92 $extrafields->fetch_name_optionals_label(
'expedition');
93 $extrafields->fetch_name_optionals_label(
'expeditiondet');
95 $head[$h][0] = DOL_URL_ROOT.
"/admin/expedition.php";
96 $head[$h][1] = $langs->trans(
"Shipment");
97 $head[$h][2] =
'shipment';
100 $head[$h][0] = DOL_URL_ROOT.
'/admin/expedition_extrafields.php';
101 $head[$h][1] = $langs->trans(
"ExtraFields");
102 $nbExtrafields = $extrafields->attributes[
'expedition'][
'count'];
103 if ($nbExtrafields > 0) {
104 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
106 $head[$h][2] =
'attributes_shipment';
109 $head[$h][0] = DOL_URL_ROOT.
'/admin/expeditiondet_extrafields.php';
110 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
111 $nbExtrafields = $extrafields->attributes[
'expeditiondet'][
'count'];
112 if ($nbExtrafields > 0) {
113 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
115 $head[$h][2] =
'attributeslines_shipment';
119 $head[$h][0] = DOL_URL_ROOT.
"/admin/delivery.php";
120 $head[$h][1] = $langs->trans(
"Receivings");
121 $head[$h][2] =
'receivings';
125 $extrafields->fetch_name_optionals_label(
'delivery');
126 $extrafields->fetch_name_optionals_label(
'deliverydet');
128 $head[$h][0] = DOL_URL_ROOT.
'/admin/delivery_extrafields.php';
129 $head[$h][1] = $langs->trans(
"ExtraFields");
130 $nbExtrafields = $extrafields->attributes[
'delivery'][
'count'];
131 if ($nbExtrafields > 0) {
132 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
134 $head[$h][2] =
'attributes_receivings';
137 $head[$h][0] = DOL_URL_ROOT.
'/admin/deliverydet_extrafields.php';
138 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
139 $nbExtrafields = $extrafields->attributes[
'deliverydet'][
'count'];
140 if ($nbExtrafields > 0) {
141 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
143 $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).