Fix: correction droit sur onglet expedition
Add: début ajout possibilité de créer un bon de livraison à partir d'une propale
This commit is contained in:
parent
710096cb45
commit
73efdaca9a
@ -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)
|
|||||||
$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';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user