diff --git a/htdocs/compta/accounting-files.php b/htdocs/compta/accounting-files.php
index 5e6ef3bbedf..f2f9d6e3f56 100644
--- a/htdocs/compta/accounting-files.php
+++ b/htdocs/compta/accounting-files.php
@@ -117,7 +117,7 @@ if ($user->socid > 0) {
// Define $arrayofentities if multientity is set.
$arrayofentities = array();
-if (!empty($conf->multicompany->enabled) && is_object($mc)) {
+if (isModEnabled('multicompany') && is_object($mc)) {
$arrayofentities = $mc->getEntitiesList();
}
@@ -696,14 +696,14 @@ if (!empty($date_start) && !empty($date_stop)) {
print '
'.$langs->trans("Code").' | ';
print ''.$langs->trans("Country").' | ';
print ''.$langs->trans("VATIntra").' | ';
- if (!empty($conf->multicurrency->enabled)) {
+ if (isModEnabled('multicompany')) {
print ''.$langs->trans("Currency").' | ';
}
print '';
if (empty($TData)) {
print '| '.$langs->trans("NoRecordFound").' | ';
- if (!empty($conf->multicurrency->enabled)) {
+ if (isModEnabled('multicompany')) {
print ' | ';
}
print '
';
@@ -833,7 +833,7 @@ if (!empty($date_start) && !empty($date_stop)) {
$totalVAT_debit -= $data['amount_vat'];
}
- if (!empty($conf->multicurrency->enabled)) {
+ if (isModEnabled('multicompany')) {
print ''.$data['currency']." | \n";
}
@@ -847,7 +847,7 @@ if (!empty($date_start) && !empty($date_stop)) {
print ''.price(price2num($totalIT_credit, 'MT')).' | ';
print ''.price(price2num($totalVAT_credit, 'MT')).' | ';
print ' | ';
- if (!empty($conf->multicurrency->enabled)) {
+ if (isModEnabled('multicompany')) {
print ' | ';
}
print "\n";
@@ -858,7 +858,7 @@ if (!empty($date_start) && !empty($date_stop)) {
print ''.price(price2num($totalIT_debit, 'MT')).' | ';
print ''.price(price2num($totalVAT_debit, 'MT')).' | ';
print ' | ';
- if (!empty($conf->multicurrency->enabled)) {
+ if (isModEnabled('multicompany')) {
print ' | ';
}
print "\n";
@@ -869,7 +869,7 @@ if (!empty($date_start) && !empty($date_stop)) {
print ''.price(price2num($totalIT_credit + $totalIT_debit, 'MT')).' | ';
print ''.price(price2num($totalVAT_credit + $totalVAT_debit, 'MT')).' | ';
print ' | ';
- if (!empty($conf->multicurrency->enabled)) {
+ if (isModEnabled('multicompany')) {
print ' | ';
}
print "\n";