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 '
'; @@ -499,7 +495,7 @@ if ($_GET["id"] > 0) { if ($user->rights->fournisseur->commande->valider) { - print ''.$langs->trans("Valid").''; + print ''.$langs->trans("Valid").''; } } @@ -507,9 +503,9 @@ if ($_GET["id"] > 0) { if ($user->rights->fournisseur->commande->approuver) { - print ''.$langs->trans("ApproveOrder").''; + print ''.$langs->trans("ApproveOrder").''; - print ''.$langs->trans("RefuseOrder").''; + print ''.$langs->trans("RefuseOrder").''; } } @@ -517,7 +513,7 @@ if ($_GET["id"] > 0) { if ($user->rights->fournisseur->commande->approuver) { - print ''.$langs->trans("RefuseOrder").''; + print ''.$langs->trans("RefuseOrder").''; } } @@ -525,7 +521,7 @@ if ($_GET["id"] > 0) { if ($user->rights->fournisseur->commande->creer) { - print ''.$langs->trans("Delete").''; + print ''.$langs->trans("Delete").''; } }