From 111e44493aad7eff8a754d2fe09352120a578292 Mon Sep 17 00:00:00 2001 From: aspangaro Date: Fri, 3 Jul 2015 06:48:49 +0200 Subject: [PATCH] Disable button add a line in bank module when accountancy module is activated --- htdocs/compta/bank/account.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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 */