diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 59d19841b21..b43b74ba429 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -666,63 +666,42 @@ else */ if ($user->societe_id == 0 && $commande->statut < 3) { - print '
| Supprimer | "; + print 'Supprimer'; } elseif ($commande->statut == 1 && abs($resteapayer) > 0 && $user->rights->commande->envoyer) { - print "Envoyer | "; - } - else - { - print '- | '; - } - - if ($commande->statut > 0 && $commande->statut < 3 && $user->rights->expedition->creer) - { - print 'Expédier | '; - } - else - { - print '- | '; + print 'Envoyer'; } - print '- | '; - print '- | '; + if ($commande->statut > 0 && $commande->statut < 3 && $user->rights->expedition->creer) + { + print 'Expédier'; + } + if ($commande->statut == 0) { if ($user->rights->commande->valider) { - print "Valider | "; - } - else - { - print '- | '; + print 'Valider'; } } - elseif ($commande->statut == 1) + + if ($commande->statut == 1) { $nb_expedition = $commande->nb_expedition(); if ($user->rights->commande->valider && $nb_expedition == 0) { - print "Annuler la commande | "; + print 'Annuler la commande'; } - else - { - print '- | '; - } - } - else - { - print '- | '; } - print "
\n";