diff --git a/htdocs/fourn/card.php b/htdocs/fourn/card.php index 85e88597d52..53b111350f8 100644 --- a/htdocs/fourn/card.php +++ b/htdocs/fourn/card.php @@ -626,7 +626,13 @@ if ($object->id > 0) // modified by hook if (empty($reshook)) { - if ($user->rights->fournisseur->commande->creer) + if ($conf->supplier_proposal->enabled && $user->rights->supplier_proposal->creer) + { + $langs->load("supplier_proposal"); + print ''.$langs->trans("AddSupplierProposal").''; + } + + if ($user->rights->fournisseur->commande->creer) { $langs->load("orders"); print ''.$langs->trans("AddOrder").''; @@ -638,12 +644,6 @@ if ($object->id > 0) print ''.$langs->trans("AddBill").''; } - if ($conf->supplier_proposal->enabled && $user->rights->supplier_proposal->creer) - { - $langs->load("supplier_proposal"); - print ''.$langs->trans("AddSupplierProposal").''; - } - if ($user->rights->fournisseur->facture->creer) { if (! empty($orders2invoice) && $orders2invoice > 0) print '
';