FIX the autofix corrupted vat value must be triggered only if we are

sure data is corrupted.
FIX the autofix must also fix the multicurrency value.
This commit is contained in:
Laurent Destailleur
2024-11-06 16:17:51 +01:00
parent 00b9943069
commit b7821bde26
2 changed files with 30 additions and 11 deletions

View File

@@ -40,6 +40,9 @@ if (empty($user->id)) {
}
$conf->global->MAIN_DISABLE_ALL_MAILS = 1;
$conf->global->MAIN_MAX_DECIMALS_UNIT = 5;
$conf->global->MAIN_MAX_DECIMALS_TOT = 2;
if (getDolGlobalString('MAIN_ROUNDING_RULE_TOT')) {
print "Parameter MAIN_ROUNDING_RULE_TOT must be set to 0 or not set.\n";
exit(1);