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

@ -129,12 +129,21 @@ if ($_GET["id"])
$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++;
} }
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;
$head[$h][1] = $langs->trans("Statistics"); $head[$h][1] = $langs->trans("Statistics");
$hselected=$h; $hselected=$h;