diff --git a/htdocs/societe/rib.php b/htdocs/societe/rib.php
index 4826eb5ff2b..df2799d4f14 100644
--- a/htdocs/societe/rib.php
+++ b/htdocs/societe/rib.php
@@ -134,6 +134,7 @@ if (empty($reshook))
$account->proprio = GETPOST('proprio','alpha');
$account->owner_address = GETPOST('owner_address','alpha');
$account->frstrecur = GETPOST('frstrecur','alpha');
+ $account->rum = GETPOST('rum','alpha');
if (empty($account->rum))
{
$account->rum = $prelevement->buildRumNumber($object->code_client, $account->datec, $account->id);
@@ -363,7 +364,7 @@ if ($socid && $action != 'edit' && $action != "create")
print '
'.$account->bank.' | ';
// Show fields of bank account
- foreach($account->getFieldsToShow() as $val)
+ foreach($account->getFieldsToShow(1) as $val)
{
if ($val == 'BankCode') {
$content = $account->code_banque;
@@ -380,7 +381,7 @@ if ($socid && $action != 'edit' && $action != "create")
}
} elseif ($val == 'BankAccountNumberKey') {
$content = $account->cle_rib;
- }elseif ($val == 'IBAN') {
+ } elseif ($val == 'IBAN') {
$content = $account->iban;
if (! empty($account->iban)) {
if (! checkIbanForAccount($account)) {
@@ -389,7 +390,7 @@ if ($socid && $action != 'edit' && $action != "create")
$content.= ' '.img_picto($langs->trans("IbanValid"),'info');
}
}
- }elseif ($val == 'BIC') {
+ } elseif ($val == 'BIC') {
$content = $account->bic;
if (! empty($account->bic)) {
if (! checkSwiftForAccount($account)) {
@@ -692,7 +693,7 @@ if ($socid && $action == 'edit' && $user->rights->societe->creer)
print ' | ';
// Show fields of bank account
- foreach ($account->getFieldsToShow() as $val) {
+ foreach ($account->getFieldsToShow(1) as $val) {
$require=false;
if ($val == 'BankCode') {
@@ -754,11 +755,11 @@ if ($socid && $action == 'edit' && $user->rights->societe->creer)
// RUM
print '| '.$langs->trans("RUM").' | ';
- print ''.$account->rum.' |
';
+ print ' | ';
// FRSTRECUR
print '| '.$langs->trans("WithdrawMode").' | ';
- print ' |
';
+ print ' | ';
print '';
}