Merge pull request #3932 from marcosgdf/bug-3707

FIX #3707 Thirdparty bank account page table has a glitch
This commit is contained in:
Juanjo Menent 2015-11-08 11:14:39 +01:00
commit 0cab08b2f3

View File

@ -401,7 +401,14 @@ if ($socid && $action != 'edit' && $action != "create")
}
if (count($rib_list) == 0) {
print '<tr '.$bc[0].'><td colspan="7" align="center">'.$langs->trans("NoBANRecord").'</td></tr>';
if (! empty($conf->prelevement->enabled)) {
$colspan = 8;
} else {
$colspan = 7;
}
print '<tr '.$bc[0].'><td colspan="'.$colspan.'" align="center">'.$langs->trans("NoBANRecord").'</td></tr>';
}
print '</table>';