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 ($object->type != 2 && $object->rappro) // If not cash account and can be reconciliate - { - if ($user->rights->banque->consolidate) - { + if ($object->type != 2 && $object->rappro) { // If not cash account and can be reconciliate + if ($user->rights->banque->consolidate) { print ''.$langs->trans("Conciliate").''; - } - else - { + } else { print ''.$langs->trans("Conciliate").''; } } - if ($action != 'addline') - { - if (empty($conf->global->BANK_DISABLE_DIRECT_INPUT)) - { - 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").''; - } - } - - 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 ''; - print ''; + print_fiche_titre($langs->trans("AddBankRecordLong"),'',''); + print '
'.$langs->trans("AddBankRecordLong").'
'; print ''; print ''; print ''; @@ -507,11 +495,13 @@ if ($id > 0 || ! empty($ref)) print '
'; print ''; print ''; - print ""; - - print ''."\n"; + print '
'.$langs->trans("Date").' 
 
'; + print ''; + print '
'; } + print ''; + /* * Affiche tableau des transactions bancaires */