Ajoute fonction check_codeclient

This commit is contained in:
Rodolphe Quiedeville 2004-12-01 16:55:30 +00:00
parent 7f7dafa276
commit 120902a2f9

View File

@ -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);
}
}
}
?>