Merge pull request #36733 from AlainCis/fix/improve-limits-precision-error-message
FIX #36246 Clarify decimal precision validation error message in ../htdocs/admin/limits.php
This commit is contained in:
commit
5184c71a26
2 changed files with 2 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ if ($action == 'update' && !$cancel) {
|
|||
if (! $error && ((float) $valmainmaxdecimalsshown < $valmainmaxdecimalsunit || (float) $valmainmaxdecimalsshown < $valmainmaxdecimalstot)) {
|
||||
$langs->load("errors");
|
||||
$error++;
|
||||
setEventMessages($langs->trans("ErrorValueForTooLow", dol_trunc(dol_string_nohtmltag($langs->transnoentitiesnoconv("MAIN_MAX_DECIMALS_SHOWN")), 40)), null, 'errors');
|
||||
setEventMessages($langs->trans("ErrorMaxDecimalsShownTooLowComparedToUnitOrTotal", $valmainmaxdecimalsshown, $valmainmaxdecimalsunit, $valmainmaxdecimalstot), null, 'errors');
|
||||
$action = 'edit';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -373,6 +373,7 @@ ErrorBlockLogNeedAmountsValue=The unalterbale log object needs amounts values to
|
|||
ErrorBlockLogNeedElement=The unalterbale log object needs element type to be set
|
||||
ErrorBlockLogNeedObject=The unalterbale log object needs object to be set
|
||||
ErrorBadParameterWhenCallingCreateOfBlockedLog=Bad parameter when calling create of blocked log
|
||||
ErrorMaxDecimalsShownTooLowComparedToUnitOrTotal=Value for 'Max. decimals for prices shown on screen' (%s) must be equal to or greater than both 'Max. decimals for unit prices' (%s) and 'Max. decimals for total prices' (%s). This is required to prevent rounding inconsistencies on documents.
|
||||
|
||||
# Warnings
|
||||
WarningParamUploadMaxFileSizeHigherThanPostMaxSize=Your PHP parameter upload_max_filesize (%s) is higher than PHP parameter post_max_size (%s). This is not a consistent setup.
|
||||
|
|
|
|||
Loading…
Reference in a new issue