diff --git a/htdocs/compta/tva/card.php b/htdocs/compta/tva/card.php index e40b9b9b409..882f466f037 100644 --- a/htdocs/compta/tva/card.php +++ b/htdocs/compta/tva/card.php @@ -35,7 +35,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/tva/class/paymentvat.class.php'; require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/vat.lib.php'; -if (!empty($conf->accounting->enabled)) { +if (isModEnabled('accounting')) { include_once DOL_DOCUMENT_ROOT.'/accountancy/class/accountingjournal.class.php'; } @@ -494,7 +494,7 @@ if ($action == 'create') { print "\n"; print ""; - if (!empty($conf->banque->enabled)) { + if (isModEnabled('banque')) { // Bank account print '
| ';
print $langs->trans('BankAccount');
@@ -660,7 +660,7 @@ if ($id > 0) {
print ' ';
$nbcols = 3;
- if (!empty($conf->banque->enabled)) {
+ if (isModEnabled('banque')) {
$nbcols++;
}
@@ -695,7 +695,7 @@ if ($id > 0) {
print ' '.$langs->trans("RefPayment").' | ';
print ''.$langs->trans("Date").' | ';
print ''.$langs->trans("Type").' | ';
- if (!empty($conf->banque->enabled)) {
+ if (isModEnabled('banque')) {
print ''.$langs->trans('BankAccount').' | ';
}
print ''.$langs->trans("Amount").' | ';
@@ -712,14 +712,14 @@ if ($id > 0) {
print ''.dol_print_date($db->jdate($objp->dp), 'day')." | \n";
$labeltype = $langs->trans("PaymentType".$objp->type_code) != ("PaymentType".$objp->type_code) ? $langs->trans("PaymentType".$objp->type_code) : $objp->paiement_type;
print "".$labeltype.' '.$objp->num_payment." | \n";
- if (!empty($conf->banque->enabled)) {
+ if (isModEnabled('banque')) {
$bankaccountstatic->id = $objp->baid;
$bankaccountstatic->ref = $objp->baref;
$bankaccountstatic->label = $objp->baref;
$bankaccountstatic->number = $objp->banumber;
$bankaccountstatic->currency_code = $objp->bacurrency_code;
- if (!empty($conf->accounting->enabled)) {
+ if (isModEnabled('accounting')) {
$bankaccountstatic->account_number = $objp->account_number;
$accountingjournal = new AccountingJournal($db);
|