Add more code comment in code and more information on screen
This commit is contained in:
parent
001cf8450b
commit
d0566cc7e8
5 changed files with 31 additions and 7 deletions
|
|
@ -159,7 +159,7 @@ if (function_exists('curl_init')) {
|
|||
print $langs->trans("LastStableVersion").' : <b>'.$langs->trans("UpdateServerOffline").'</b>';
|
||||
}
|
||||
} else {
|
||||
print $langs->trans("LastStableVersion").' : <a href="'.$_SERVER["PHP_SELF"].'?action=getlastversion" class="butAction smallpaddingimp">'.$langs->trans("Check").'</a>';
|
||||
print $langs->trans("LastStableVersion").' : <a href="'.$_SERVER["PHP_SELF"].'?action=getlastversion&token='.newToken().'" class="butAction smallpaddingimp">'.$langs->trans("Check").'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -181,10 +181,20 @@ if (getDolGlobalString('MAIN_VERSION_LAST_INSTALL')) {
|
|||
}
|
||||
print '</td></tr>'."\n";
|
||||
|
||||
$showblockedlogversion = 0;
|
||||
if ($mysoc->country_code == 'FR') {
|
||||
$showblockedlogversion = 1;
|
||||
}
|
||||
if (isALNERunningVersion()) {
|
||||
$showblockedlogversion = 1;
|
||||
}
|
||||
if ($showblockedlogversion) {
|
||||
print '<tr class="oddeven nohover">';
|
||||
print '<td width="300">'.$langs->trans("VersionOfModule", $langs->transnoentitiesnoconv("BlockedLog")).'</td><td>';
|
||||
print $versionbadge;
|
||||
|
||||
print ' <a href="'.DOL_URL_ROOT.'/blockedlog/admin/filecheck.php">'.img_picto('', 'url', 'class="pictofixedwidth"').$langs->trans("FileCheck").'</a>';
|
||||
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -188,9 +188,11 @@ print '<td>'.$langs->trans("Parameters").'</td>';
|
|||
print '<td></td>';
|
||||
print "</tr>\n";
|
||||
|
||||
// Initial signature
|
||||
// Generated randomly when doing the first insert by blockedlog.class.php, and saved into BLOCKEDLOG_ENTITY_FINGERPRINT
|
||||
print '<tr class="oddeven">';
|
||||
print '<td class="titlefieldmiddle">';
|
||||
print $langs->trans("CompanyInitialKey").'</td><td>';
|
||||
print '<td class="titlefieldmiddle" title="Parameter BLOCKEDLOG_ENTITY_FINGERPRINT">';
|
||||
print $langs->trans("CompanyInitialKey").'</td><td title="Parameter BLOCKEDLOG_ENTITY_FINGERPRINT">';
|
||||
print $block_static->getOrInitFirstSignature();
|
||||
print '</td></tr>';
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,12 @@ if (!$user->admin && !$user->hasRight('bockedlog', 'read')) {
|
|||
$error = 0;
|
||||
|
||||
// Version blockedlog
|
||||
$versionbadge = '<span class="badge-text badge-secondary">'.getBlockedLogVersionToShow().'</span>';
|
||||
$versionbadge = '<span class="badge-text badge-secondary">'.getBlockedLogVersionToShow();
|
||||
if ($mysoc->country_code == 'FR' && !constant('CERTIF_LNE')) {
|
||||
// Can add an edditional mention
|
||||
$versionbadge .= ' - '.$langs->trans("NeedAThirdPartyStatement");
|
||||
}
|
||||
$versionbadge .= '</span>';
|
||||
|
||||
|
||||
/*
|
||||
|
|
@ -101,7 +106,15 @@ if (!getDolGlobalString('MAIN_VERSION_LAST_UPGRADE')) {
|
|||
print ' '.$form->textwithpicto('', $htmltooltip);
|
||||
print '</td></tr>'."\n";
|
||||
|
||||
$showblockedlogversion = 0;
|
||||
if ($mysoc->country_code == 'FR') {
|
||||
$showblockedlogversion = 1;
|
||||
}
|
||||
if (isALNERunningVersion()) {
|
||||
$showblockedlogversion = 1;
|
||||
}
|
||||
|
||||
if ($showblockedlogversion) {
|
||||
print '<tr class="oddeven nohover">';
|
||||
print '<td width="300">'.$langs->trans("VersionOfModule", $langs->transnoentitiesnoconv("BlockedLog")).'</td><td>';
|
||||
print $versionbadge;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ include_once DOL_DOCUMENT_ROOT.'/blockedlog/versionmod.inc.php';
|
|||
*/
|
||||
function getBlockedLogVersionToShow()
|
||||
{
|
||||
// return DOL_VERSION;
|
||||
return constant('DOLCERT_VERSION');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue