diff --git a/htdocs/compta/prelevement/line.php b/htdocs/compta/prelevement/line.php
index 5aa7344eea5..05bbb547102 100644
--- a/htdocs/compta/prelevement/line.php
+++ b/htdocs/compta/prelevement/line.php
@@ -151,7 +151,9 @@ if ($id) {
print $bon->getNomUrl(1).'';
print '
| '.$langs->trans("Date").' | '.dol_print_date($bon->datec, 'day').' |
';
- print '| '.$langs->trans("Amount").' | '.price($lipre->amount).' |
';
+
+ print '| '.$langs->trans("Amount").' | '.price($lipre->amount).' |
';
+
print '| '.$langs->trans("Status").' | '.$lipre->LibStatut($lipre->statut, 1).' |
';
if ($lipre->statut == 3) {
@@ -159,6 +161,7 @@ if ($id) {
$resf = $rej->fetch($lipre->id);
if ($resf == 0) {
print '| '.$langs->trans("RefusedReason").' | '.$rej->motif.' |
';
+
print '| '.$langs->trans("RefusedData").' | ';
if ($rej->date_rejet == 0) {
/* Historique pour certaines install */
@@ -167,6 +170,7 @@ if ($id) {
print dol_print_date($rej->date_rejet, 'day');
}
print ' |
';
+
print '| '.$langs->trans("RefusedInvoicing").' | '.$rej->invoicing.' |
';
} else {
print '| '.$resf.' |
';
@@ -229,7 +233,7 @@ if ($id) {
/*
* Action bar
*/
- print "";
+ print '
';
if ($action == '') {
if ($bon->statut == BonPrelevement::STATUS_CREDITED) {
@@ -245,7 +249,7 @@ if ($id) {
}
}
- print "
";
+ print '
';
/*
* List of invoices
@@ -267,7 +271,7 @@ if ($id) {
if ($socid) {
$sql .= " AND s.rowid = ".((int) $socid);
}
- $sql .= " ORDER BY $sortfield $sortorder ";
+ $sql .= $db->order($sortfield, $sortorder);
$sql .= $db->plimit($conf->liste_limit + 1, $offset);
$result = $db->query($sql);