Use isModEnabled

This commit is contained in:
Alexandre SPANGARO 2022-08-29 11:35:00 +02:00
parent b1514af198
commit 6ae73e72e5

View File

@ -560,7 +560,7 @@ class PaymentVAT extends CommonObject
$error = 0;
if (!empty($conf->banque->enabled)) {
if (isModEnabled('banque')) {
include_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
$acc = new Account($this->db);