diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php
index 767fae52654..50aa9c0e197 100644
--- a/htdocs/compta/bank/account.php
+++ b/htdocs/compta/bank/account.php
@@ -182,6 +182,12 @@ if ($account || $_GET["ref"])
$param='';
$sql_rech='';
$mode_search = 0;
+ if ($_REQUEST["req_nb"])
+ {
+ $sql_rech.= " AND b.num_chq like '%".addslashes($_REQUEST["req_nb"])."%'";
+ $param.='&req_nb='.urlencode($_REQUEST["req_nb"]);
+ $mode_search = 1;
+ }
if ($_REQUEST["req_desc"])
{
$sql_rech.= " AND b.label like '%".addslashes($_REQUEST["req_desc"])."%'";
@@ -295,6 +301,7 @@ if ($account || $_GET["ref"])
}
$navig.= ' Page ';
$navig.='';
+ $navig.='';
$navig.='';
$navig.='';
$navig.='';
@@ -385,6 +392,7 @@ if ($account || $_GET["ref"])
print '
'.$langs->trans("Date").' | ';
print ''.$langs->trans("Value").' | ';
print ''.$langs->trans("Type").' | ';
+ print ''.$langs->trans("Numero").' | ';
print ''.$langs->trans("Description").' | ';
print ''.$langs->trans("ThirdParty").' | ';
print ''.$langs->trans("Debit").' | ';
@@ -402,6 +410,7 @@ if ($account || $_GET["ref"])
print '';
print '| | ';
+ print ' | ';
print ' | ';
print ' | ';
print ' | ';
@@ -416,7 +425,7 @@ if ($account || $_GET["ref"])
* select sum(amount) from solde ;
*/
- $sql = "SELECT b.rowid,".$db->pdate("b.dateo")." as do,".$db->pdate("b.datev")." as dv,";
+ $sql = "SELECT b.rowid, b.dateo as do, b.datev as dv,";
$sql.= " b.amount, b.label, b.rappro, b.num_releve, b.num_chq, b.fk_type";
if ($mode_search)
{
@@ -491,9 +500,10 @@ if ($account || $_GET["ref"])
print "".dol_print_date($objp->do,"day")." | \n";
- print " ".dol_print_date($objp->dv,"day")." | \n";
+ print "".dol_print_date($objp->dv,"day")." | \n";
- print " ".$langs->trans($objp->fk_type)." ".($objp->num_chq?$objp->num_chq:"")." | \n";
+ print "".$langs->trans($objp->fk_type)." | \n";
+ print ''.($objp->num_chq?$objp->num_chq:"")." | \n";
// Description
print '';
|