From ae103a2d0a04ae30a9a51421a71221abb2aaff0c Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 13 Apr 2003 18:31:52 +0000 Subject: [PATCH] Gestion du champ domiciliation --- htdocs/compta/bank/account.class.php | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/htdocs/compta/bank/account.class.php b/htdocs/compta/bank/account.class.php index f968f127b00..6804ca15edf 100644 --- a/htdocs/compta/bank/account.class.php +++ b/htdocs/compta/bank/account.class.php @@ -85,6 +85,7 @@ class Account { $sql .= ",number='".$this->number."'"; $sql .= ",cle_rib='".$this->cle_rib."'"; $sql .= ",bic='".$this->bic."'"; + $sql .= ",domiciliation='".$this->domiciliation."'"; $sql .= ",courant = ".$this->courant; $sql .= ",clos = ".$this->clos; $sql .= ",iban_prefix = '".$this->iban_prefix."'"; @@ -113,7 +114,7 @@ class Account { Function fetch($id) { $this->id = $id; - $sql = "SELECT rowid, label, bank, number, courant, clos, code_banque,code_guichet,cle_rib,bic,iban_prefix FROM llx_bank_account"; + $sql = "SELECT rowid, label, bank, number, courant, clos, code_banque,code_guichet,cle_rib,bic,iban_prefix,domiciliation FROM llx_bank_account"; $sql .= " WHERE rowid = ".$id; $result = $this->db->query($sql); @@ -124,16 +125,17 @@ class Account { { $obj = $this->db->fetch_object($result , 0); - $this->bank = $obj->bank; - $this->label = $obj->label; - $this->courant = $obj->courant; - $this->clos = $obj->clos; - $this->code_banque = $obj->code_banque; - $this->code_guichet = $obj->code_guichet; - $this->number = $obj->number; - $this->cle_rib = $obj->cle_rib; - $this->bic = $obj->bic; - $this->iban_prefix = $obj->iban_prefix; + $this->bank = $obj->bank; + $this->label = $obj->label; + $this->courant = $obj->courant; + $this->clos = $obj->clos; + $this->code_banque = $obj->code_banque; + $this->code_guichet = $obj->code_guichet; + $this->number = $obj->number; + $this->cle_rib = $obj->cle_rib; + $this->bic = $obj->bic; + $this->domiciliation = $obj->domiciliation; + $this->iban_prefix = $obj->iban_prefix; } $this->db->free(); }