diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php
index f2a7649166a..680a12c211c 100644
--- a/htdocs/compta/bank/account.php
+++ b/htdocs/compta/bank/account.php
@@ -374,43 +374,34 @@ if ($id > 0 || ! empty($ref))
* Boutons actions
*/
- if ($action != 'delete')
- {
+ if ($action != 'delete') {
print '
';
- }
+ if ($action != 'addline') {
+ if (empty($conf->global->BANK_DISABLE_DIRECT_INPUT)) {
+ if (empty($conf->accounting->enabled)) {
+ if ($user->rights->banque->modifier) {
+ print 'id.'&page='.$page.($vline?'&vline='.$vline:'').'">'.$langs->trans("AddBankRecord").'';
+ } else {
+ print ''.$langs->trans("AddBankRecord").'';
+ }
+ } else {
+ print ''.$langs->trans("AddBankRecord").'';
+ }
+ } else {
+ print ''.$langs->trans("AddBankRecord").'';
+ }
+ }
+ print '';
+ }
print '
';
@@ -466,15 +457,12 @@ if ($id > 0 || ! empty($ref))
print ''.$navig.'
';
}
- print '';
-
// Form to add a transaction with no invoice
if ($user->rights->banque->modifier && $action == 'addline')
{
- print '';
- print '| '.$langs->trans("AddBankRecordLong").' | ';
- print '
';
+ print_fiche_titre($langs->trans("AddBankRecordLong"),'','');
+ print '';
+ print '';
+ print '
';
}
+ print '';
+
/*
* Affiche tableau des transactions bancaires
*/