diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index 3d06f665e22..460e40a1de4 100644
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -3397,13 +3397,16 @@ if ($action == 'create')
print '';
// Bank Account
- if (GETPOSTISSET('fk_account')) {
- $fk_account = GETPOST('fk_account');
- }
+ if (!empty($conf->banque->enabled))
+ {
+ if (GETPOSTISSET('fk_account')) {
+ $fk_account = GETPOST('fk_account');
+ }
- print '
| '.$langs->trans('BankAccount').' | ';
- $form->select_comptes($fk_account, 'fk_account', 0, '', 1);
- print ' |
';
+ print '| '.$langs->trans('BankAccount').' | ';
+ $form->select_comptes($fk_account, 'fk_account', 0, '', 1);
+ print ' |
';
+ }
// Project
if (!empty($conf->projet->enabled))
@@ -4264,22 +4267,25 @@ if ($action == 'create')
}
// Bank Account
- print '| ';
- print '';
- print ' | ';
- if ($action == 'editbankaccount')
+ if (!empty($conf->banque->enabled))
{
- $form->formSelectAccount($_SERVER['PHP_SELF'].'?id='.$object->id, $object->fk_account, 'fk_account', 1);
- } else {
- $form->formSelectAccount($_SERVER['PHP_SELF'].'?id='.$object->id, $object->fk_account, 'none');
+ print ' |
| ';
+ print '';
+ print ' | ';
+ if ($action == 'editbankaccount')
+ {
+ $form->formSelectAccount($_SERVER['PHP_SELF'].'?id='.$object->id, $object->fk_account, 'fk_account', 1);
+ } else {
+ $form->formSelectAccount($_SERVER['PHP_SELF'].'?id='.$object->id, $object->fk_account, 'none');
+ }
+ print " | ";
+ print '
';
}
- print "";
- print '';
// Incoterms
if (!empty($conf->incoterm->enabled))
diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index da2ac2f7824..707e84cf87c 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -2015,9 +2015,12 @@ if ($action == 'create')
print '';
// Bank Account
- print '| '.$langs->trans('BankAccount').' | ';
- $form->select_comptes((GETPOSTISSET('fk_account') ?GETPOST('fk_account', 'alpha') : $fk_account), 'fk_account', 0, '', 1);
- print ' |
';
+ if (!empty($conf->banque->enabled))
+ {
+ print '| '.$langs->trans('BankAccount').' | ';
+ $form->select_comptes((GETPOSTISSET('fk_account') ?GETPOST('fk_account', 'alpha') : $fk_account), 'fk_account', 0, '', 1);
+ print ' |
';
+ }
// Multicurrency
if (!empty($conf->multicurrency->enabled))
@@ -2589,21 +2592,24 @@ if ($action == 'create')
}
// Bank Account
- print '| ';
- print '';
- print ' | ';
- if ($action == 'editbankaccount') {
- $form->formSelectAccount($_SERVER['PHP_SELF'].'?id='.$object->id, $object->fk_account, 'fk_account', 1);
- } else {
- $form->formSelectAccount($_SERVER['PHP_SELF'].'?id='.$object->id, $object->fk_account, 'none');
+ if (!empty($conf->banque->enabled))
+ {
+ print ' |
| ';
+ print '';
+ print ' | ';
+ if ($action == 'editbankaccount') {
+ $form->formSelectAccount($_SERVER['PHP_SELF'].'?id='.$object->id, $object->fk_account, 'fk_account', 1);
+ } else {
+ $form->formSelectAccount($_SERVER['PHP_SELF'].'?id='.$object->id, $object->fk_account, 'none');
+ }
+ print " | ";
+ print '
';
}
- print "";
- print '';
// Incoterms
if (!empty($conf->incoterm->enabled))