diff --git a/htdocs/compta/commande/fiche.php b/htdocs/compta/commande/fiche.php index 612fe8d99f5..8b8e1ce047d 100644 --- a/htdocs/compta/commande/fiche.php +++ b/htdocs/compta/commande/fiche.php @@ -30,9 +30,11 @@ require("./pre.inc.php"); +$langs->load("orders"); $langs->load("sendings"); $langs->load("companies"); $langs->load("bills"); +$langs->load("propal"); $user->getrights('facture'); @@ -238,27 +240,26 @@ if ($_GET["id"] > 0) print ''; - /* - * Barre d'actions - */ - - if (! $user->societe_id && ! $commande->facturee) - { - print "
\n"; - - if ($commande->statut > 0 && $user->rights->facture->creer) - { - print ''.$langs->trans("GenerateBill").''; - } - - if ($num_fac_asso) - { - if ($user->rights->commande->creer) - print ''.$langs->trans("ClassifyBilled").''; - } - print '
'; - } - + /* + * Barre d'actions + */ + + if (! $user->societe_id && ! $commande->facturee) + { + print "
\n"; + + if ($commande->statut > 0 && $user->rights->facture->creer) + { + print ''.$langs->trans("GenerateBill").''; + } + + if ($user->rights->commande->creer) + { + print ''.$langs->trans("ClassifyBilled").''; + } + print '
'; + } + print "
";