Fix: L'onglet fournisseur est conditionné sur activation du module

This commit is contained in:
Laurent Destailleur 2004-12-04 19:28:48 +00:00
parent dd7753df19
commit d09fb6c90b

View File

@ -130,9 +130,18 @@ if ($_GET["id"])
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++;
}
if ($conf->fournisseur->enabled) {
$head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id;
$head[$h][1] = $langs->trans("Suppliers");
$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;