Skip to content
Snippets Groups Projects
Commit 2df60c38 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: on fait apparaitre les catégories fournisseurs si le module fournisseur est activé

parent 7ce2bb0d
Branches
Tags
No related merge requests found
......@@ -237,11 +237,14 @@ class MenuLeft {
{
$langs->load("categories");
// Catgories fournisseurs
if ($conf->fournisseur->enabled
{
$newmenu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&type=1", $langs->trans("SuppliersCategoriesShort"), 0, $user->rights->categorie->lire);
if ($user->societe_id == 0)
{
$newmenu->add_submenu(DOL_URL_ROOT."/categories/fiche.php?action=create&type=1", $langs->trans("NewCat"), 1, $user->rights->categorie->creer);
}
}
// Catgories clients
$newmenu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&type=2", $langs->trans("CustomersCategoriesShort"), 0, $user->rights->categorie->lire);
if ($user->societe_id == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment