diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php
index f7692536770..2d0f34314ce 100644
--- a/htdocs/fourn/commande/fiche.php
+++ b/htdocs/fourn/commande/fiche.php
@@ -389,12 +389,8 @@ if ($_GET["id"] > 0)
print '
| ';
}
print ''.price($objp->subprice)." | \n";
- if ($commande->statut == 0 && $user->rights->fournisseur->commande->creer)
- {/*
- print '';
- print img_edit();
- print ' | ';
- */
+ if ($commande->statut == 0 && $user->rights->fournisseur->commande->creer && $_GET["action"] <> 'valid')
+ {
print ' | ';
print img_delete();
print ' | ';
@@ -433,7 +429,7 @@ if ($_GET["id"] > 0)
* Ajouter une ligne
*
*/
- if ($commande->statut == 0 && $user->rights->fournisseur->commande->creer)
+ if ($_GET["action"] <> 'valid' && $commande->statut == 0 && $user->rights->fournisseur->commande->creer)
{
$sql = "SELECT p.rowid,p.label,p.ref ";
$sql .=" , pf.price";
@@ -491,7 +487,7 @@ if ($_GET["id"] > 0)
print '';
- if ($user->societe_id == 0 && $commande->statut < 3)
+ if ($user->societe_id == 0 && $commande->statut < 3 && $_GET["action"] <> 'valid')
{
print '