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,12 +120,15 @@ if ($_GET["id"])
$hselected = $h; $hselected = $h;
$h++; $h++;
if($product->type == 0)
{
if ($conf->stock->enabled) 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] = $langs->trans("Stock"); $head[$h][1] = $langs->trans("Stock");
$h++; $h++;
} }
}
if ($conf->fournisseur->enabled) if ($conf->fournisseur->enabled)
{ {