diff --git a/htdocs/telephonie/client/new.php b/htdocs/telephonie/client/new.php index 4b208112023..28737cbf299 100644 --- a/htdocs/telephonie/client/new.php +++ b/htdocs/telephonie/client/new.php @@ -178,8 +178,6 @@ if ($_POST["action"] == 'add') $error++; } } - - if (!$error && $verif == "ok") { @@ -195,6 +193,21 @@ if ($_POST["action"] == 'add') } } + + if ((strlen(trim($_POST["rib_banque"])) + strlen(trim($_POST["rib_guichet"])) + strlen(trim($_POST["rib_compte"])) + strlen(trim($_POST["rib_cle"])))<> 0 && $verif == 'ok' && !$error) + { + $rib->soc_id = $soc->id; + + if ( $rib->update($user) > 0) + { + + } + else + { + $error++; + } + } + if (!$error && $verif == "ok") { $contrat = new TelephonieContrat($db);