Ajout sauvegardr du RIB
This commit is contained in:
parent
e8c2684265
commit
0e3f17130e
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user