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

@ -81,9 +81,12 @@ $h++;
if($product->type == 0) if($product->type == 0)
{ {
$head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id; if ($conf->stock->enabled)
$head[$h][1] = 'Stock'; {
$h++; $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;
$head[$h][1] = 'Stock';
$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;