Show more info to help fix corrupted data
This commit is contained in:
parent
fd8f8ff4e1
commit
366f458b39
@ -3050,8 +3050,9 @@ abstract class CommonObject
|
|||||||
if ($diff)
|
if ($diff)
|
||||||
{
|
{
|
||||||
if (abs($diff) > 0.1) {
|
if (abs($diff) > 0.1) {
|
||||||
dol_syslog('A rounding difference was detected into TOTAL but is too high to be corrected', LOG_WARNING);
|
$errmsg = 'A rounding difference was detected into TOTAL but is too high to be corrected. Some data in your line may be corrupted. Try to edit each line manually.';
|
||||||
dol_print_error('', 'A rounding difference was detected into TOTAL but is too high to be corrected');
|
dol_syslog($errmsg, LOG_WARNING);
|
||||||
|
dol_print_error('', $errmsg);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$sqlfix = "UPDATE ".MAIN_DB_PREFIX.$this->table_element_line." SET ".$fieldtva." = ".($obj->total_tva - $diff).", total_ttc = ".($obj->total_ttc - $diff)." WHERE rowid = ".$obj->rowid;
|
$sqlfix = "UPDATE ".MAIN_DB_PREFIX.$this->table_element_line." SET ".$fieldtva." = ".($obj->total_tva - $diff).", total_ttc = ".($obj->total_ttc - $diff)." WHERE rowid = ".$obj->rowid;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user