diff --git a/htdocs/admin/system/dolibarr.php b/htdocs/admin/system/dolibarr.php index a7de2cb1f02..230122a31f4 100644 --- a/htdocs/admin/system/dolibarr.php +++ b/htdocs/admin/system/dolibarr.php @@ -159,7 +159,7 @@ if (function_exists('curl_init')) { print $langs->trans("LastStableVersion").' : '.$langs->trans("UpdateServerOffline").''; } } else { - print $langs->trans("LastStableVersion").' : '.$langs->trans("Check").''; + print $langs->trans("LastStableVersion").' : '.$langs->trans("Check").''; } } @@ -181,10 +181,20 @@ if (getDolGlobalString('MAIN_VERSION_LAST_INSTALL')) { } print ''."\n"; +$showblockedlogversion = 0; +if ($mysoc->country_code == 'FR') { + $showblockedlogversion = 1; +} if (isALNERunningVersion()) { + $showblockedlogversion = 1; +} +if ($showblockedlogversion) { print ''; print ''.$langs->trans("VersionOfModule", $langs->transnoentitiesnoconv("BlockedLog")).''; print $versionbadge; + + print '   '.img_picto('', 'url', 'class="pictofixedwidth"').$langs->trans("FileCheck").''; + print ''; print ''; } diff --git a/htdocs/blockedlog/admin/blockedlog.php b/htdocs/blockedlog/admin/blockedlog.php index 1b3fc1d5692..495848ca9e7 100644 --- a/htdocs/blockedlog/admin/blockedlog.php +++ b/htdocs/blockedlog/admin/blockedlog.php @@ -188,9 +188,11 @@ print ''.$langs->trans("Parameters").''; print ''; print "\n"; +// Initial signature +// Generated randomly when doing the first insert by blockedlog.class.php, and saved into BLOCKEDLOG_ENTITY_FINGERPRINT print ''; -print ''; -print $langs->trans("CompanyInitialKey").''; +print ''; +print $langs->trans("CompanyInitialKey").''; print $block_static->getOrInitFirstSignature(); print ''; diff --git a/htdocs/blockedlog/admin/filecheck.php b/htdocs/blockedlog/admin/filecheck.php index a9d673de9fe..edace4b6c5d 100644 --- a/htdocs/blockedlog/admin/filecheck.php +++ b/htdocs/blockedlog/admin/filecheck.php @@ -52,7 +52,12 @@ if (!$user->admin && !$user->hasRight('bockedlog', 'read')) { $error = 0; // Version blockedlog -$versionbadge = ''.getBlockedLogVersionToShow().''; +$versionbadge = ''.getBlockedLogVersionToShow(); +if ($mysoc->country_code == 'FR' && !constant('CERTIF_LNE')) { + // Can add an edditional mention + $versionbadge .= ' - '.$langs->trans("NeedAThirdPartyStatement"); +} +$versionbadge .= ''; /* @@ -101,7 +106,15 @@ if (!getDolGlobalString('MAIN_VERSION_LAST_UPGRADE')) { print ' '.$form->textwithpicto('', $htmltooltip); print ''."\n"; +$showblockedlogversion = 0; +if ($mysoc->country_code == 'FR') { + $showblockedlogversion = 1; +} if (isALNERunningVersion()) { + $showblockedlogversion = 1; +} + +if ($showblockedlogversion) { print ''; print ''.$langs->trans("VersionOfModule", $langs->transnoentitiesnoconv("BlockedLog")).''; print $versionbadge; diff --git a/htdocs/blockedlog/lib/blockedlog.lib.php b/htdocs/blockedlog/lib/blockedlog.lib.php index 41f78a559c5..0af44cde442 100644 --- a/htdocs/blockedlog/lib/blockedlog.lib.php +++ b/htdocs/blockedlog/lib/blockedlog.lib.php @@ -33,7 +33,6 @@ include_once DOL_DOCUMENT_ROOT.'/blockedlog/versionmod.inc.php'; */ function getBlockedLogVersionToShow() { - // return DOL_VERSION; return constant('DOLCERT_VERSION'); } diff --git a/htdocs/langs/en_US/blockedlog.lang b/htdocs/langs/en_US/blockedlog.lang index 2037bd84ee1..81ed624830c 100644 --- a/htdocs/langs/en_US/blockedlog.lang +++ b/htdocs/langs/en_US/blockedlog.lang @@ -61,7 +61,7 @@ LNECertifiedPOSSystem=LNE Certified POS system LNECandidatePOSSystem=POS system candidate for the LNE certification LNECertifiedVersionFR=The version %s of module Immutable Logs is a certified version. More information on https://www.dolibarr.org/certifications.php LNECandidateVersionForCertificationFR=The version %s of module Immutable Logs is a candidate version to become a LNE certified version. Not yet certified. -NotCertifiedVersionFR=This version %s of application is technically compliant with the french VAT anti-fraud law (check any update of the law of your country), but you MUST get the compliant statement from an IT company to be allowed to use this software to collect payments from private individuals (ask your reseller or integrator to get this statement of compliance). +NotCertifiedVersionFR=This version %s of application is technically ready to be compliant with the french VAT anti-fraud law (check any update of the law of your country), but is NOT the certified version, so you MUST get the compliant statement from an IT company to be allowed to use this software to collect payments from private individuals (ask your reseller or integrator to obtain this statement of compliance). InvoiceGeneratedWithLNECertifiedPOSSystem=Invoice generated with a LNE certified POS system InvoiceGeneratedWithLNECandidatePOSSystem=Invoice generated with a candidate for the LNE certified POS system TotalTTCIfInvoiceSeeCompleteDataForDetail=Event amount. Total including tax if invoice. See the column "complete data" for details. @@ -129,7 +129,7 @@ IncludesAll=Includes all IncludesAllHelp=Includes all record, even the one recorded with an old version before the v24. On version older than v24, the amount excluding tax for fast calculation of cumulative total was not recorded in the unalterable Log, so it won't be reported. OnlyFromV2=Only record from v24 OnlyFromV2Help=After the v24 version, the amount excluding tax for fast calculation of cumulative total was recorded in the unalterable Log, so it is reported, but date range may be lower than the one of the "Includes all" option. - +NeedAThirdPartyStatement=You need a third-party statement to be compliant with law ## logTypes logBILL_DELETE=Customer invoice logically deleted logBILL_PAYED=Customer invoice paid