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) {