Fix warning

This commit is contained in:
Laurent Destailleur
2024-04-17 23:30:07 +02:00
parent 0d5d0d6ae8
commit fdebfdb8c6

View File

@@ -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';