From fdebfdb8c68982b95ffa192ec8ad37ca0c469ff9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 17 Apr 2024 23:30:07 +0200 Subject: [PATCH] Fix warning --- htdocs/core/modules/facture/mod_facture_terre.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/modules/facture/mod_facture_terre.php b/htdocs/core/modules/facture/mod_facture_terre.php index f53528f2d95..72473e854d1 100644 --- a/htdocs/core/modules/facture/mod_facture_terre.php +++ b/htdocs/core/modules/facture/mod_facture_terre.php @@ -73,7 +73,7 @@ class mod_facture_terre extends ModeleNumRefFactures { global $conf, $mysoc; - if ((float) $conf->global->MAIN_VERSION_LAST_INSTALL >= 16.0 && $mysoc->country_code != 'FR') { + if (((float) getDolGlobalString('MAIN_VERSION_LAST_INSTALL')) >= 16.0 && $mysoc->country_code != 'FR') { $this->prefixinvoice = 'IN'; // We use correct standard code "IN = Invoice" $this->prefixreplacement = 'IR'; $this->prefixdeposit = 'ID';