diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index f2a7649166a..1b840275eaa 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -392,7 +392,7 @@ if ($id > 0 || ! empty($ref)) if ($action != 'addline') { - if (empty($conf->global->BANK_DISABLE_DIRECT_INPUT)) + if (empty($conf->global->BANK_DISABLE_DIRECT_INPUT) && empty($conf->accounting->enabled)) { if ($user->rights->banque->modifier) { @@ -466,15 +466,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 ''; - print ''; + print_fiche_titre($langs->trans("AddBankRecordLong"),'',''); + print '
'.$langs->trans("AddBankRecordLong").'
'; print ''; print ''; print ''; @@ -507,11 +504,13 @@ if ($id > 0 || ! empty($ref)) print '
'; print ''; print ''; - print ""; - - print ''."\n"; + print '
'.$langs->trans("Date").' 
 
'; + print ''; + print '
'; } + print ''; + /* * Affiche tableau des transactions bancaires */