Affiche l'onglet Stock si le module est activé

This commit is contained in:
Rodolphe Quiedeville 2004-11-16 16:47:16 +00:00
parent 1d60eba4b7
commit 033dc98e5e

View File

@ -80,11 +80,14 @@ $hselected=$h;
$h++; $h++;
if($product->type == 0) if($product->type == 0)
{
if ($conf->stock->enabled)
{ {
$head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id; $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;
$head[$h][1] = 'Stock'; $head[$h][1] = 'Stock';
$h++; $h++;
} }
}
$head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id; $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id;
$head[$h][1] = $langs->trans("Statistics"); $head[$h][1] = $langs->trans("Statistics");