Fix: L'onglet stock ne doit pas s'afficher sur les services.

This commit is contained in:
Laurent Destailleur 2005-08-15 16:14:58 +00:00
parent c43c754f45
commit 2fd0bcda3e

View File

@ -120,13 +120,16 @@ if ($_GET["id"])
$hselected = $h;
$h++;
if ($conf->stock->enabled)
if($product->type == 0)
{
$head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;
$head[$h][1] = $langs->trans("Stock");
$h++;
if ($conf->stock->enabled)
{
$head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;
$head[$h][1] = $langs->trans("Stock");
$h++;
}
}
if ($conf->fournisseur->enabled)
{
$head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id;