2
0
forked from Wavyzz/dolibarr

fix phpstan

This commit is contained in:
Frédéric FRANCE
2023-12-02 21:18:10 +01:00
committed by GitHub
parent a5f921b64c
commit adfc58bd7d

View File

@@ -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;
}
/**