diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index 1b840275eaaed5d9483aeb76f7b71865ca100b60..680a12c211c82bd2d49a2c129574eecd7e7a2618 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 '<div class="tabsAction">'; - 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 '<a class="butAction" href="'.DOL_URL_ROOT.'/compta/bank/rappro.php?account='.$object->id.($vline?'&vline='.$vline:'').'">'.$langs->trans("Conciliate").'</a>'; - } - else - { + } else { print '<a class="butActionRefused" title="'.$langs->trans("NotEnoughPermissions").'" href="#">'.$langs->trans("Conciliate").'</a>'; } } - if ($action != 'addline') - { - if (empty($conf->global->BANK_DISABLE_DIRECT_INPUT) && empty($conf->accounting->enabled)) - { - if ($user->rights->banque->modifier) - { - print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=addline&id='.$object->id.'&page='.$page.($vline?'&vline='.$vline:'').'">'.$langs->trans("AddBankRecord").'</a>'; - } - else - { - print '<a class="butActionRefused" title="'.$langs->trans("NotEnoughPermissions").'" href="#">'.$langs->trans("AddBankRecord").'</a>'; - } - } - else - { - print '<a class="butActionRefused" title="'.$langs->trans("FeatureDisabled").'" href="#">'.$langs->trans("AddBankRecord").'</a>'; - } - } - - print '</div>'; - } + if ($action != 'addline') { + if (empty($conf->global->BANK_DISABLE_DIRECT_INPUT)) { + if (empty($conf->accounting->enabled)) { + if ($user->rights->banque->modifier) { + print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=addline&id='.$object->id.'&page='.$page.($vline?'&vline='.$vline:'').'">'.$langs->trans("AddBankRecord").'</a>'; + } else { + print '<a class="butActionRefused" title="'.$langs->trans("NotEnoughPermissions").'" href="#">'.$langs->trans("AddBankRecord").'</a>'; + } + } else { + print '<a class="butActionRefused" title="'.$langs->trans("FeatureDisabled").'" href="#">'.$langs->trans("AddBankRecord").'</a>'; + } + } else { + print '<a class="butActionRefused" title="'.$langs->trans("FeatureDisabled").'" href="#">'.$langs->trans("AddBankRecord").'</a>'; + } + } + print '</div>'; + } print '<br>';