From 120902a2f978f844d9bf1c5d5c189823210d23fe Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 1 Dec 2004 16:55:30 +0000 Subject: [PATCH] Ajoute fonction check_codeclient --- htdocs/societe.class.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index d74078c3588..63c16d40fc7 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -778,6 +778,22 @@ class Societe { $this->rib(); return $this->bank_account->verif(); } + + function check_codeclient() + { + if (defined('CODECLIENT_ADDON') && strlen(CODECLIENT_ADDON) > 0) + { + + require_once DOL_DOCUMENT_ROOT.'/includes/modules/societe/'.CODECLIENT_ADDON.'.php'; + + $var = CODECLIENT_ADDON; + + $mod = new $var; + + return $mod->verif($this->db, $this->code_client); + } + + } } ?>