Ajout sauvegardr du RIB

This commit is contained in:
Rodolphe Quiedeville 2005-08-24 08:38:25 +00:00
parent e8c2684265
commit 0e3f17130e

View File

@ -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);