From 4e0505a53ee46c6bddf48d5adbbf6226fc5b8b18 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 29 Apr 2006 13:30:21 +0000 Subject: [PATCH] =?UTF-8?q?ajout=20possibilit=E9e=20d'=E9diter=20une=20com?= =?UTF-8?q?mande=20valid=E9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/fiche.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 10f1bcbc129..bd4e1334c0e 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -272,6 +272,16 @@ if ($_POST['action'] == 'confirm_delete' && $_POST['confirm'] == 'yes') } } +if ($_GET['action'] == 'modif' && $user->rights->commande->creer) +{ + /* + * Repasse la commande en mode brouillon + */ + $commande = new Commande($db); + $commande->fetch($_GET['id']); + $commande->reopen($user->id); +} + if ($_POST['action'] == 'builddoc') { /* @@ -1065,6 +1075,15 @@ else print ''.$langs->trans('Valid').''; } } + + // Edit + if ($commande->statut == 1) + { + if ($user->rights->commande->creer) + { + print ''.$langs->trans('Edit').''; + } + } // Build PDF if ($user->rights->commande->creer)