diff --git a/htdocs/core/class/html.formactions.class.php b/htdocs/core/class/html.formactions.class.php
index adf5f4c340b..7d5bffb6e54 100644
--- a/htdocs/core/class/html.formactions.class.php
+++ b/htdocs/core/class/html.formactions.class.php
@@ -179,7 +179,6 @@ class FormActions
if ($typeelement == 'invoice') $title=$langs->trans('ActionsOnBill');
elseif ($typeelement == 'invoice_supplier' || $typeelement == 'supplier_invoice') $title=$langs->trans('ActionsOnBill');
elseif ($typeelement == 'propal') $title=$langs->trans('ActionsOnPropal');
- elseif ($typeelement == 'supplier_payment') $title=$langs->trans('ActionsOnSupplierPayment');
elseif ($typeelement == 'supplier_proposal') $title=$langs->trans('ActionsOnSupplierProposal');
elseif ($typeelement == 'order') $title=$langs->trans('ActionsOnOrder');
elseif ($typeelement == 'order_supplier' || $typeelement == 'supplier_order') $title=$langs->trans('ActionsOnOrder');
diff --git a/htdocs/fourn/paiement/card.php b/htdocs/fourn/paiement/card.php
index 4126ef8c134..36749977927 100644
--- a/htdocs/fourn/paiement/card.php
+++ b/htdocs/fourn/paiement/card.php
@@ -367,11 +367,10 @@ if ($result > 0)
}
print '';
+ /*
print '
';
- /*
- * Documents generes
- */
+ // Documents generes
$ref=dol_sanitizeFileName($object->ref);
$filedir = $conf->fournisseur->payment->dir_output.'/'.dol_sanitizeFileName($object->ref);
$urlsource=$_SERVER['PHP_SELF'].'?id='.$object->id;
@@ -393,7 +392,7 @@ if ($result > 0)
print '
';
//print '';
-
+ */
}
else
{
diff --git a/htdocs/fourn/paiement/info.php b/htdocs/fourn/paiement/info.php
index 24263106052..eafc4f2decc 100644
--- a/htdocs/fourn/paiement/info.php
+++ b/htdocs/fourn/paiement/info.php
@@ -32,9 +32,12 @@ $langs->load("bills");
$langs->load("suppliers");
$langs->load("companies");
-$paiement = new PaiementFourn($db);
-$paiement->fetch($_GET["id"], $user);
-$paiement->info($_GET["id"]);
+$id = GETPOST('id','int');
+
+$object = new PaiementFourn($db);
+$object->fetch($id);
+$object->info($id);
+
/*
* View
@@ -42,15 +45,17 @@ $paiement->info($_GET["id"]);
llxHeader();
-$head = payment_supplier_prepare_head($paiement);
+$head = payment_supplier_prepare_head($object);
dol_fiche_head($head, 'info', $langs->trans("SupplierPayment"), 0, 'payment');
-print '| ';
-dol_print_object_info($paiement);
-print ' |
';
+dol_banner_tab($object, 'id', $linkback, -1, 'rowid', 'ref');
-print '';
+dol_fiche_end();
+
+print '| ';
+dol_print_object_info($object);
+print ' |
';
llxFooter();