Skip to content
Snippets Groups Projects
Commit c391bed0 authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Ajout titulaire du RIB

parent efe0d6fe
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......@@ -355,8 +362,15 @@ if ($user->rights->telephonie->ligne->creer)
print '<tr><td>'.$langs->trans('Phone').'</td><td><input type="text" size="11" maxlength="10" '.$focus.' name="tel" value="'.$soc->tel.'"></td>';
print '<td>'.$langs->trans('Fax').'</td><td><input type="text" '.$focus.' name="fax" size="11" maxlength="10" value="'.$soc->fax.'"></td></tr>';
print "</table>\n";
print "</fieldset><br />\n";
print '<fieldset id="contact">';
print "<legend>Coordonnes bancaires</legend>\n";
print '<table class="noborder" width="100%">';
print '<tr><td width="20%">Titulaire du compte</td><td><input type="text" size="30" '.$focus.' name="titulaire" value="'.$contact->name.'"></td></tr>';
print '<tr><td>RIB</td><td colspan="3">';
print '<tr><td width="20%">RIB</td><td colspan="3">';
print '<input type="text" size="6" maxlength="5" '.$focus.' name="rib_banque" value="'.$_POST["rib_banque"].'">';
print '<input type="text" size="6" maxlength="5" '.$focus.' name="rib_guichet" value="'.$_POST["rib_guichet"].'">';
print '<input type="text" size="12" maxlength="11" '.$focus.' name="rib_compte" value="'.$_POST["rib_compte"].'">';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment