Fix missing errror on facture clone

This commit is contained in:
Sekan, Tobias 2020-04-23 11:04:14 +02:00
parent 177f4f535d
commit f793844862

View File

@ -2674,6 +2674,7 @@ class FactureFournisseur extends CommonInvoice
if ($result < 0) if ($result < 0)
{ {
$this->error = $object->error; $this->error = $object->error;
$this->errors = $object->errors;
$error++; $error++;
} }
@ -3154,7 +3155,7 @@ class SupplierInvoiceLine extends CommonObjectLine
dol_syslog(get_class($this)."::delete error -4 ".$this->error, LOG_ERR); dol_syslog(get_class($this)."::delete error -4 ".$this->error, LOG_ERR);
} }
} }
if (!$error) { if (!$error) {
// Supprime ligne // Supprime ligne
$sql = 'DELETE FROM '.MAIN_DB_PREFIX.'facture_fourn_det '; $sql = 'DELETE FROM '.MAIN_DB_PREFIX.'facture_fourn_det ';