94 global $langs,
$conf, $user, $db;
97 $extrafields->fetch_name_optionals_label(
'entrepot');
98 $extrafields->fetch_name_optionals_label(
'stock_mouvement');
99 $extrafields->fetch_name_optionals_label(
'inventory');
104 $head[$h][0] = DOL_URL_ROOT.
'/admin/stock.php';
105 $head[$h][1] = $langs->trans(
"Miscellaneous");
106 $head[$h][2] =
'general';
115 $head[$h][0] = DOL_URL_ROOT.
'/product/admin/stock_extrafields.php';
116 $head[$h][1] = $langs->trans(
"ExtraFields");
117 $nbExtrafields = $extrafields->attributes[
'entrepot'][
'count'];
118 if ($nbExtrafields > 0) {
119 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
121 $head[$h][2] =
'attributes';
124 $head[$h][0] = DOL_URL_ROOT.
'/product/admin/stock_mouvement_extrafields.php';
125 $head[$h][1] = $langs->trans(
"StockMouvementExtraFields");
126 $nbExtrafields = $extrafields->attributes[
'stock_mouvement'][
'count'];
127 if ($nbExtrafields > 0) {
128 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
130 $head[$h][2] =
'stockMouvementAttributes';
133 $head[$h][0] = DOL_URL_ROOT.
'/product/admin/inventory_extrafields.php';
134 $head[$h][1] = $langs->trans(
"InventoryExtraFields");
135 $nbExtrafields = $extrafields->attributes[
'inventory'][
'count'];
136 if ($nbExtrafields > 0) {
137 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
139 $head[$h][2] =
'inventoryAttributes';
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).