déplacement de l'onglet catégorie

This commit is contained in:
Regis Houssin 2007-09-05 11:56:09 +00:00
parent acb6eedd2e
commit 4750e6be62

View File

@ -42,16 +42,6 @@ function societe_prepare_head($objsoc)
$head[$h][2] = 'company'; $head[$h][2] = 'company';
$h++; $h++;
//affichage onglet catégorie
if ($conf->categorie->enabled)
{
$head[$h][0] = DOL_URL_ROOT.'/categories/categorie.php?socid='.$objsoc->id;
$head[$h][1] = $langs->trans('Categories');
$head[$h][2] = 'category';
$h++;
}
if ($objsoc->client==1) if ($objsoc->client==1)
{ {
$head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$objsoc->id; $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$objsoc->id;
@ -73,7 +63,6 @@ function societe_prepare_head($objsoc)
$head[$h][2] = 'supplier'; $head[$h][2] = 'supplier';
$h++; $h++;
} }
if ($conf->facture->enabled || $conf->compta->enabled || $conf->comptaexpert->enabled) if ($conf->facture->enabled || $conf->compta->enabled || $conf->comptaexpert->enabled)
{ {
$langs->load("compta"); $langs->load("compta");
@ -82,7 +71,14 @@ function societe_prepare_head($objsoc)
$head[$h][2] = 'compta'; $head[$h][2] = 'compta';
$h++; $h++;
} }
//affichage onglet catégorie
if ($conf->categorie->enabled)
{
$head[$h][0] = DOL_URL_ROOT.'/categories/categorie.php?socid='.$objsoc->id;
$head[$h][1] = $langs->trans('Categories');
$head[$h][2] = 'category';
$h++;
}
if ($user->societe_id == 0) if ($user->societe_id == 0)
{ {
$head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$objsoc->id; $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$objsoc->id;
@ -90,7 +86,6 @@ function societe_prepare_head($objsoc)
$head[$h][2] = 'note'; $head[$h][2] = 'note';
$h++; $h++;
} }
if ($user->societe_id == 0) if ($user->societe_id == 0)
{ {
$head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$objsoc->id; $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$objsoc->id;