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

Fix: correction droit sur onglet expedition

Add: début ajout possibilité de créer un bon de livraison à partir d'une propale
parent 710096cb
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,8 @@ function commande_prepare_head($commande) ...@@ -47,7 +47,8 @@ function commande_prepare_head($commande)
$h++; $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; $head[$h][0] = DOL_URL_ROOT.'/expedition/commande.php?id='.$commande->id;
if ($conf->expedition->enabled) $text=$langs->trans("Sendings"); if ($conf->expedition->enabled) $text=$langs->trans("Sendings");
......
...@@ -43,6 +43,18 @@ function propal_prepare_head($propal) ...@@ -43,6 +43,18 @@ function propal_prepare_head($propal)
$head[$h][2] = 'comm'; $head[$h][2] = 'comm';
$h++; $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][0] = DOL_URL_ROOT.'/compta/propal.php?propalid='.$propal->id;
$head[$h][1] = $langs->trans('AccountancyCard'); $head[$h][1] = $langs->trans('AccountancyCard');
$head[$h][2] = 'compta'; $head[$h][2] = 'compta';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment