From f58a4901be9c864bec0ee19ddef657e15c67f0df Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 10 Jun 2006 10:50:26 +0000 Subject: [PATCH] =?UTF-8?q?Possibilit=E9=20de=20reg=E9n=E9rer=20le=20PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/fiche.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index f91ac34a19a..25480f63606 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1398,7 +1398,7 @@ else /* * Boutons actions */ - if ($user->societe_id == 0 && $commande->statut < 3) + if ($user->societe_id == 0) { print '
'; @@ -1421,13 +1421,19 @@ else } // Build PDF - if ($user->rights->commande->creer) + if ($user->rights->commande->creer && $commande->statut < 3) { print ''.$langs->trans("BuildPDF").''; } + // reBuild PDF + if ($user->rights->commande->creer && $commande->statut >= 3) + { + print ''.$langs->trans("RebuildPDF").''; + } + // Send - if ($commande->statut == 1) + if ($commande->statut > 0) { if ($user->rights->commande->envoyer) {