diff --git a/htdocs/compta/bank/account.class.php b/htdocs/compta/bank/account.class.php
index b6e1105c969..1251e2723f1 100644
--- a/htdocs/compta/bank/account.class.php
+++ b/htdocs/compta/bank/account.class.php
@@ -45,6 +45,7 @@ class Account
var $bank;
var $clos;
var $rappro;
+ var $url;
var $code_banque;
var $code_guichet;
@@ -348,6 +349,7 @@ class Account
$sql .= ",courant = ".$this->courant;
$sql .= ",clos = ".$this->clos;
$sql .= ",rappro = ".$this->rappro;
+ $sql .= ",url = ".($this->url?"'".$this->url."'":"null");
$sql .= ",account_number = '".$this->account_number."'";
$sql .= " WHERE rowid = ".$this->id;
@@ -372,7 +374,7 @@ class Account
function fetch($id)
{
$this->id = $id;
- $sql = "SELECT rowid, ref, label, bank, number, courant, clos, rappro,";
+ $sql = "SELECT rowid, ref, label, bank, number, courant, clos, rappro, url,";
$sql.= " code_banque, code_guichet, cle_rib, bic, iban_prefix,";
$sql.= " domiciliation, proprio, adresse_proprio,";
$sql.= " account_number";
@@ -394,6 +396,7 @@ class Account
$this->bank = $obj->bank;
$this->clos = $obj->clos;
$this->rappro = $obj->rappro;
+ $this->url = $obj->url;
$this->code_banque = $obj->code_banque;
$this->code_guichet = $obj->code_guichet;
diff --git a/htdocs/compta/bank/fiche.php b/htdocs/compta/bank/fiche.php
index c96e8ae0118..2f3766d3d82 100644
--- a/htdocs/compta/bank/fiche.php
+++ b/htdocs/compta/bank/fiche.php
@@ -51,6 +51,7 @@ if ($_POST["action"] == 'add')
$account->courant = $_POST["type"];
$account->clos = $_POST["clos"];
$account->rappro = $_POST["norappro"]?1:0;
+ $account->url = $_POST["url"];
$account->bank = trim($_POST["bank"]);
$account->code_banque = $_POST["code_banque"];
@@ -95,6 +96,7 @@ if ($_POST["action"] == 'update' && ! $_POST["cancel"])
$account->courant = $_POST["type"];
$account->clos = $_POST["clos"];
$account->rappro = (isset($_POST["norappro"]) && $_POST["norappro"]=='on')?0:1;
+ $account->url = $_POST["url"];
$account->bank = trim($_POST["bank"]);
$account->code_banque = $_POST["code_banque"];
@@ -156,7 +158,7 @@ if ($_GET["action"] == 'create')
if ($message) { print "$message
\n"; }
- print '