From 0e3f17130e2a2b50a653dd986a929b3009d46685 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 24 Aug 2005 08:38:25 +0000 Subject: [PATCH] Ajout sauvegardr du RIB --- htdocs/telephonie/client/new.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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);