clean code

This commit is contained in:
Frédéric FRANCE 2023-04-27 09:47:00 +02:00
parent 0d3fdbe408
commit 1d8c7f934f

View File

@ -652,7 +652,7 @@ class BOM extends CommonObject
$this->db->commit();
return $result;
} else {
$this->error = $line->error;
$this->setErrorsFromObject($line);
dol_syslog(get_class($this)."::addLine error=".$this->error, LOG_ERR);
$this->db->rollback();
return -2;
@ -764,7 +764,7 @@ class BOM extends CommonObject
$this->db->commit();
return $result;
} else {
$this->error = $line->error;
$this->setErrorsFromObject($line);
dol_syslog(get_class($this)."::addLine error=".$this->error, LOG_ERR);
$this->db->rollback();
return -2;
@ -816,7 +816,7 @@ class BOM extends CommonObject
$this->db->commit();
return $result;
} else {
$this->error = $line->error;
$this->setErrorsFromObject($line);
dol_syslog(get_class($this)."::addLine error=".$this->error, LOG_ERR);
$this->db->rollback();
return -2;