diff --git a/htdocs/societe/rib.php b/htdocs/societe/rib.php
index f6149690b7e..0d61c0d98fa 100644
--- a/htdocs/societe/rib.php
+++ b/htdocs/societe/rib.php
@@ -355,7 +355,6 @@ if ($socid && $action != 'edit' && $action != "create")
dol_banner_tab($object, 'socid', $linkback, ($user->societe_id?0:1), 'rowid', 'nom');
- print '
';
print load_fiche_titre($langs->trans("DefaultRIB"), '', '');
@@ -425,16 +424,14 @@ if ($socid && $action != 'edit' && $action != "create")
print '';
- print "
";
-
- dol_fiche_end();
-
+ print '
';
+
/*
* List of bank accounts
*/
- print load_fiche_titre($langs->trans("AllRIB"));
+ print load_fiche_titre($langs->trans("AllRIB"), '', '');
$rib_list = $object->get_all_rib();
$var = false;
@@ -485,6 +482,14 @@ if ($socid && $action != 'edit' && $action != "create")
$string .= $rib->iban.' ';*/
}
}
+ if (! empty($rib->label)) {
+ if (! checkBanForAccount($rib)) {
+ $string.= ' '.img_picto($langs->trans("ValueIsNotValid"),'warning');
+ } else {
+ $string.= ' '.img_picto($langs->trans("ValueIsValid"),'info');
+ }
+ }
+
print $string;
print '';
// IBAN
@@ -613,6 +618,9 @@ if ($socid && $action != 'edit' && $action != "create")
dol_print_error($db);
}
+ dol_fiche_end();
+
+
if ($socid && $action != 'edit' && $action != 'create')
{