33 global $langs, $conf, $user;
38 $head[$h][0] = DOL_URL_ROOT.
'/product/stock/card.php?id='.
$object->id;
39 $head[$h][1] = $langs->trans(
"Warehouse");
40 $head[$h][2] =
'card';
43 if ($user->hasRight(
'stock',
'mouvement',
'lire')) {
44 $head[$h][0] = DOL_URL_ROOT.
'/product/stock/movement_list.php?id='.
$object->id;
45 $head[$h][1] = $langs->trans(
"StockMovements");
46 $head[$h][2] =
'movements';
75 $head[$h][0] = DOL_URL_ROOT.
'/product/stock/info.php?id='.
$object->id;
76 $head[$h][1] = $langs->trans(
"Info");
77 $head[$h][2] =
'info';
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).