Ajout sauvegardr du RIB
This commit is contained in:
parent
e8c2684265
commit
0e3f17130e
@ -179,8 +179,6 @@ if ($_POST["action"] == 'add')
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!$error && $verif == "ok")
|
if (!$error && $verif == "ok")
|
||||||
{
|
{
|
||||||
$contact->socid = $soc->id;
|
$contact->socid = $soc->id;
|
||||||
@ -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")
|
if (!$error && $verif == "ok")
|
||||||
{
|
{
|
||||||
$contrat = new TelephonieContrat($db);
|
$contrat = new TelephonieContrat($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user