80 global $langs,
$conf, $user, $extrafields;
81 $langs->load(
"sendings");
94 $extrafields->fetch_name_optionals_label(
'expedition');
95 $extrafields->fetch_name_optionals_label(
'expeditiondet');
97 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
"/admin/expedition.php");
98 $head[$h][1] = $langs->trans(
"Shipment");
99 $head[$h][2] =
'shipment';
102 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/admin/extrafields.php', array(
'elementtype' =>
'expedition'));
103 $head[$h][1] = $langs->trans(
"ExtraFields");
104 $nbExtrafields = $extrafields->attributes[
'expedition'][
'count'];
105 if ($nbExtrafields > 0) {
106 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
108 $head[$h][2] =
'attributes_shipment';
111 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/admin/extrafields.php', array(
'elementtype' =>
'expeditiondet'));
112 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
113 $nbExtrafields = $extrafields->attributes[
'expeditiondet'][
'count'];
114 if ($nbExtrafields > 0) {
115 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
117 $head[$h][2] =
'attributeslines_shipment';
121 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
"/admin/delivery.php");
122 $head[$h][1] = $langs->trans(
"Receivings");
123 $head[$h][2] =
'receivings';
127 $extrafields->fetch_name_optionals_label(
'delivery');
128 $extrafields->fetch_name_optionals_label(
'deliverydet');
130 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/admin/extrafields.php', array(
'elementtype' =>
'delivery'));
131 $head[$h][1] = $langs->trans(
"ExtraFields");
132 $nbExtrafields = $extrafields->attributes[
'delivery'][
'count'];
133 if ($nbExtrafields > 0) {
134 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
136 $head[$h][2] =
'attributes_receivings';
139 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/admin/extrafields.php', array(
'elementtype' =>
'deliverydet'));
140 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
141 $nbExtrafields = $extrafields->attributes[
'deliverydet'][
'count'];
142 if ($nbExtrafields > 0) {
143 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
145 $head[$h][2] =
'attributeslines_receivings';
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $conf
The main.inc.php has been included so the following variable are now defined:
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).