diff --git a/htdocs/expedition/commande.php b/htdocs/expedition/commande.php index a1f4357c9a3..c85d7b038c8 100644 --- a/htdocs/expedition/commande.php +++ b/htdocs/expedition/commande.php @@ -41,7 +41,7 @@ if ($user->societe_id > 0) * */ -if ($HTTP_POST_VARS["action"] == 'confirm_valid' && $HTTP_POST_VARS["confirm"] == yes && $user->rights->commande->valider) +if ($HTTP_POST_VARS["action"] == 'confirm_cloture' && $HTTP_POST_VARS["confirm"] == yes) { $commande = new Commande($db); $commande->fetch($_GET["id"]); @@ -76,6 +76,22 @@ if ($id > 0) /* * Commande */ + + + /* + * Confirmation de la validation + * + */ + if ($_GET["action"] == 'cloture') + { + $html->form_confirm("$PHP_SELF?id=$id","Cloturer la commande","Etes-vous sûr de cloturer cette commande ?","confirm_cloture"); + } + + + /* + * + */ + print '