La fonctionnalit des Contrats de services a t isole
dans un module indpendant ce qui permet de ne pas l'activer pour ceux qui ne la veulent pas.
This commit is contained in:
parent
501f962b71
commit
c591a36c39
@ -51,7 +51,10 @@ function llxHeader($head = "", $urlp = "") {
|
||||
$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 )
|
||||
{
|
||||
@ -65,10 +68,10 @@ function llxHeader($head = "", $urlp = "") {
|
||||
|
||||
if ($conf->produit->enabled || $conf->service->enabled)
|
||||
{
|
||||
$chaine="";
|
||||
if ($conf->produit->enabled) { $chaine.="Produits"; }
|
||||
$chaine="";
|
||||
if ($conf->produit->enabled) { $chaine.="Produits"; }
|
||||
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");
|
||||
}
|
||||
|
||||
|
||||
@ -42,7 +42,10 @@ function llxHeader($head = "", $title="") {
|
||||
$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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user