From 490b6014837f647d750375093a25db709487d421 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 21 Sep 2004 15:05:40 +0000 Subject: [PATCH] Synchro --- htdocs/societe.class.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 66f55332459..fc97e149202 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -688,7 +688,24 @@ class Societe { $rib = $bac->code_banque." ".$bac->code_guichet." ".$bac->number." ".$bac->cle_rib; return $rib; + } + function rib() + { + require_once DOL_DOCUMENT_ROOT . "/companybankaccount.class.php"; + + $bac = new CompanyBankAccount($this->db, $this->id); + $bac->fetch(); + + $this->bank_account = $bac; + + return 1; + } + + function verif_rib() + { + $this->rib(); + return $this->bank_account->verif(); } }