La fonctionnalité des Contrats de services a été isolée

dans un module indépendant ce qui permet de ne pas l'activer
pour ceux qui ne la veulent pas.
This commit is contained in:
Laurent Destailleur 2004-05-01 01:01:35 +00:00
parent 501f962b71
commit c591a36c39
2 changed files with 11 additions and 5 deletions

View File

@ -51,7 +51,10 @@ function llxHeader($head = "", $urlp = "") {
$menu->add_submenu("./propal/stats/", "Statistiques"); $menu->add_submenu("./propal/stats/", "Statistiques");
} }
$menu->add(DOL_URL_ROOT."/contrat/index.php", "Contrats"); if ($conf->contrat->enabled)
{
$menu->add(DOL_URL_ROOT."/contrat/index.php", "Contrats");
}
if ($conf->commande->enabled ) if ($conf->commande->enabled )
{ {
@ -65,10 +68,10 @@ function llxHeader($head = "", $urlp = "") {
if ($conf->produit->enabled || $conf->service->enabled) if ($conf->produit->enabled || $conf->service->enabled)
{ {
$chaine=""; $chaine="";
if ($conf->produit->enabled) { $chaine.="Produits"; } if ($conf->produit->enabled) { $chaine.="Produits"; }
if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; } if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; }
if ($conf->service->enabled) { $chaine.="Services"; } if ($conf->service->enabled) { $chaine.="Services"; }
$menu->add(DOL_URL_ROOT."/product/index.php", "$chaine"); $menu->add(DOL_URL_ROOT."/product/index.php", "$chaine");
} }

View File

@ -42,7 +42,10 @@ function llxHeader($head = "", $title="") {
$menu->add(DOL_URL_ROOT."/compta/propal.php","Prop. commerciales"); $menu->add(DOL_URL_ROOT."/compta/propal.php","Prop. commerciales");
} }
$menu->add(DOL_URL_ROOT."/contrat/","Contrats"); if ($conf->contrat->enabled)
{
$menu->add(DOL_URL_ROOT."/contrat/","Contrats");
}
if ($conf->don->enabled) if ($conf->don->enabled)
{ {