32 global $langs, $conf, $user;
37 $head[$h][0] = DOL_URL_ROOT.
'/product/stock/card.php?id='.$object->id;
38 $head[$h][1] = $langs->trans(
"Warehouse");
39 $head[$h][2] =
'card';
42 if (!empty($user->rights->stock->mouvement->lire)) {
43 $head[$h][0] = DOL_URL_ROOT.
'/product/stock/movement_list.php?id='.$object->id;
44 $head[$h][1] = $langs->trans(
"StockMovements");
45 $head[$h][2] =
'movements';
74 $head[$h][0] = DOL_URL_ROOT.
'/product/stock/info.php?id='.$object->id;
75 $head[$h][1] = $langs->trans(
"Info");
76 $head[$h][2] =
'info';
93 global $langs, $conf, $user, $db;
96 $extrafields->fetch_name_optionals_label(
'entrepot');
97 $extrafields->fetch_name_optionals_label(
'stock_mouvement');
98 $extrafields->fetch_name_optionals_label(
'inventory');
103 $head[$h][0] = DOL_URL_ROOT.
'/admin/stock.php';
104 $head[$h][1] = $langs->trans(
"Miscellaneous");
105 $head[$h][2] =
'general';
114 $head[$h][0] = DOL_URL_ROOT.
'/product/admin/stock_extrafields.php';
115 $head[$h][1] = $langs->trans(
"ExtraFields");
116 $nbExtrafields = $extrafields->attributes[
'entrepot'][
'count'];
117 if ($nbExtrafields > 0) {
118 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
120 $head[$h][2] =
'attributes';
123 $head[$h][0] = DOL_URL_ROOT.
'/product/admin/stock_mouvement_extrafields.php';
124 $head[$h][1] = $langs->trans(
"StockMouvementExtraFields");
125 $nbExtrafields = $extrafields->attributes[
'stock_mouvement'][
'count'];
126 if ($nbExtrafields > 0) {
127 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
129 $head[$h][2] =
'stockMouvementAttributes';
132 $head[$h][0] = DOL_URL_ROOT.
'/product/admin/inventory_extrafields.php';
133 $head[$h][1] = $langs->trans(
"InventoryExtraFields");
134 $nbExtrafields = $extrafields->attributes[
'inventory'][
'count'];
135 if ($nbExtrafields > 0) {
136 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
138 $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).