diff --git a/htdocs/compta/commande.php b/htdocs/compta/commande.php index 137671844ae..4b04dccd238 100644 --- a/htdocs/compta/commande.php +++ b/htdocs/compta/commande.php @@ -22,6 +22,7 @@ require("./pre.inc.php"); $user->getrights('commande'); +$user->getrights('facture'); if (!$user->rights->commande->lire) accessforbidden(); @@ -71,7 +72,7 @@ if ($_GET["id"] > 0) $author->fetch(); - $head[0][0] = DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id; + $head[0][0] = DOL_URL_ROOT.'/compta/commande.php?id='.$commande->id; $head[0][1] = "Commande : $commande->ref"; $h = 1; $a = 0; @@ -308,12 +309,14 @@ if ($_GET["id"] > 0) { print "
\n"; - print 'Facturer'; + + if ($user->rights->facture->creer) + print 'Facturer'; if (!$commande->facturee && $num_fac_asso) { - - print 'Classer comme facturée'; + if ($user->rights->commande->creer) + print 'Classer comme facturée'; } print '
';