Allow RUM on creation step

* close #4932
This commit is contained in:
cam.lafit 2017-07-19 16:27:34 +02:00
parent 6e77dab832
commit 69aed8ac7f

View File

@ -203,6 +203,7 @@ if (empty($reshook))
$account->proprio = GETPOST('proprio','alpha');
$account->owner_address = GETPOST('owner_address','alpha');
$account->frstrecur = GETPOST('frstrecur');
$account->rum = GETPOST('rum','alpha');
// This test can be done only once properties were set
if ($account->needIBAN() == 1)
@ -871,7 +872,7 @@ if ($socid && $action == 'create' && $user->rights->societe->creer)
// RUM
print '<tr><td class="titlefieldcreate">'.$langs->trans("RUM").'</td>';
print '<td>'.$langs->trans("RUMWillBeGenerated").'</td></tr>';
print '<td colspan="4"><input size="30" type="text" name="rum" value="'.dol_escape_htmltag($account->rum).'"><br/>'.$langs->trans("RUMWillBeGenerated").'</td></tr>';
// FRSTRECUR
print '<tr><td>'.$langs->trans("WithdrawMode").'</td>';