fix phpstan
This commit is contained in:
parent
a5f921b64c
commit
adfc58bd7d
1 changed files with 2 additions and 1 deletions
|
|
@ -997,7 +997,7 @@ class Expedition extends CommonObject
|
|||
$linebatch = new ExpeditionLineBatch($this->db);
|
||||
$ret = $linebatch->fetchFromStock($value['id_batch']); // load serial, sellby, eatby
|
||||
if ($ret < 0) {
|
||||
$this->error = $linebatch->error;
|
||||
$this->setErrorsFromObject($linebatch);
|
||||
return -1;
|
||||
}
|
||||
$linebatch->qty = $value['q'];
|
||||
|
|
@ -1038,6 +1038,7 @@ class Expedition extends CommonObject
|
|||
$this->lines[$num] = $line;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue