diff --git a/ChangeLog b/ChangeLog
index 08b90003fc4..0aca5b9581f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ $Id$
***** ChangeLog for 3.1 compared to 3.0 *****
For users:
+- New: Can filter of payment type in bank transaction list.
- New: Status is visible into user list.
- New: Support BSB code for bank account in australia.
- New: Can set date of payment for autocreate invoice/payment when
diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php
index 961a4c44e8e..c4515e0bc5c 100644
--- a/htdocs/compta/bank/account.php
+++ b/htdocs/compta/bank/account.php
@@ -214,6 +214,12 @@ if ($account || $_GET["ref"])
$param.='&thirdparty='.urlencode($_REQUEST["thirdparty"]);
$mode_search = 1;
}
+ if ($_REQUEST["paiementtype"])
+ {
+ $sql_rech.=" AND b.fk_type = '".$db->escape($_REQUEST["paiementtype"])."'";
+ $param.='&paiementtype='.urlencode($_REQUEST["paiementtype"]);
+ $mode_search = 1;
+ }
$sql = "SELECT count(*) as nb";
$sql.= " FROM ".MAIN_DB_PREFIX."bank_account as ba";
@@ -415,7 +421,12 @@ if ($account || $_GET["ref"])
print '';
print '