From ecc6cb5596cf7b0a141e6d9a8a06f22defc74c49 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 23 Jan 2017 20:38:26 +0100 Subject: [PATCH] Fix button at wrong place --- htdocs/fourn/card.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 '
'.$langs->trans("CreateInvoiceForThisCustomer").'
';