Fix: correction droit sur onglet expedition

Add: dbut ajout possibilit de crer un bon de livraison  partir d'une propale
This commit is contained in:
Regis Houssin 2008-01-10 20:46:38 +00:00
parent 710096cb45
commit 73efdaca9a
2 changed files with 14 additions and 1 deletions

View File

@ -47,7 +47,8 @@ function commande_prepare_head($commande)
$h++;
}
if (($conf->expedition->enabled || $conf->livraison->enabled) && $user->rights->expedition->lire)
if (($conf->expedition->enabled && $user->rights->expedition->lire)
|| ($conf->livraison->enabled && $user->rights->expedition->livraison->lire))
{
$head[$h][0] = DOL_URL_ROOT.'/expedition/commande.php?id='.$commande->id;
if ($conf->expedition->enabled) $text=$langs->trans("Sendings");

View File

@ -42,6 +42,18 @@ function propal_prepare_head($propal)
$head[$h][1] = $langs->trans('CommercialCard');
$head[$h][2] = 'comm';
$h++;
if (!$conf->commande->enabled && (($conf->expedition->enabled && $user->rights->expedition->lire)
|| ($conf->livraison->enabled && $user->rights->expedition->livraison->lire)))
{
$langs->load("sendings");
$head[$h][0] = DOL_URL_ROOT.'/expedition/propal.php?id='.$propal->id;
if ($conf->expedition->enabled) $text=$langs->trans("Sendings");
if ($conf->livraison->enabled) $text.='/'.$langs->trans("Receivings");
$head[$h][1] = $text;
$head[$h][2] = 'shipping';
$h++;
}
$head[$h][0] = DOL_URL_ROOT.'/compta/propal.php?propalid='.$propal->id;
$head[$h][1] = $langs->trans('AccountancyCard');