fix: missing error return on invoice created when lines array is filled
This commit is contained in:
parent
68518a8717
commit
de2e9f5ea5
1 changed files with 2 additions and 2 deletions
|
|
@ -863,8 +863,8 @@ class Facture extends CommonInvoice
|
|||
);
|
||||
|
||||
if ($result < 0) {
|
||||
$this->error = $this->db->lasterror();
|
||||
$this->errors = array_merge($this->errors, $newinvoiceline->errors);
|
||||
$this->error = $newinvoiceline->error;
|
||||
$this->errors = $newinvoiceline->errors;
|
||||
$error++;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue