diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php
index e9d9267696d..bdbd0b49b59 100644
--- a/htdocs/fourn/facture/fiche.php
+++ b/htdocs/fourn/facture/fiche.php
@@ -113,7 +113,7 @@ if ($_POST['action'] == 'confirm_deleteproductline' && $_POST['confirm'] == 'yes
}
}
-if ($_GET['action'] == 'payed')
+if ($_REQUEST['action'] == 'confirm_payed' && $_REQUEST['confirm'] == 'yes' && $user->rights->fournisseur->facture->creer)
{
$facturefourn=new FactureFournisseur($db);
$facturefourn->fetch($_GET['facid']);
@@ -590,6 +590,13 @@ else
print '
';
}
+ // Confirmation de la validation
+ if ($_GET['action'] == 'payed')
+ {
+ $html->form_confirm('fiche.php?facid='.$fac->id, $langs->trans('ClassifyPayed'), $langs->trans('ConfirmClassifyPayedBill', $fac->ref), 'confirm_payed');
+ print '
';
+ }
+
/*
* Confirmation de la suppression de la facture fournisseur
*/
@@ -761,7 +768,6 @@ else
/*
* Lignes
- *
*/
print '
';
print '