diff --git a/htdocs/telephonie/client/new.php b/htdocs/telephonie/client/new.php index 28737cbf299..69f2332cdcb 100644 --- a/htdocs/telephonie/client/new.php +++ b/htdocs/telephonie/client/new.php @@ -96,6 +96,7 @@ if ($_POST["action"] == 'add') $rib->number = $_POST["rib_compte"]; $rib->cle_rib = $_POST["rib_cle"]; $rib->iban_prefix = $_POST["rib_iban"]; + $rib->proprio = $_POST["titulaire"]; if ((strlen(trim($_POST["rib_banque"])) + strlen(trim($_POST["rib_guichet"])) + strlen(trim($_POST["rib_compte"])) + strlen(trim($_POST["rib_cle"])))<> 0 && $verif == 'ok') @@ -112,6 +113,12 @@ if ($_POST["action"] == 'add') $verif = "nok"; } + if (strlen(trim($_POST["titulaire"])) == 0 && $verif == 'ok') + { + $mesg = "Vous devez indiquer le titulaire du compte"; + $verif = "nok"; + } + if ($rib->verif() <> 1 && $verif == 'ok') { $mesg = "Rib incorrect ".$rib->error_message; @@ -352,42 +359,49 @@ if ($user->rights->telephonie->ligne->creer) print $langs->trans('Town').' '; - print '