Fixing style errors.

This commit is contained in:
stickler-ci 2022-01-20 00:09:52 +00:00
parent 115f022ae9
commit 400d28238c

View File

@ -1357,17 +1357,17 @@ class CommandeFournisseur extends CommonOrder
if ($this->id) {
$num = count($this->lines);
// insert products details into database
for ($i = 0; $i < $num; $i++) {
$line = $this->lines[$i];
if (!is_object($line)) {
$line = $this->lines[$i];
if (!is_object($line)) {
$line = (object) $line;
}
$this->special_code = $line->special_code; // TODO : remove this in 9.0 and add special_code param to addline()
// This include test on qty if option SUPPLIER_ORDER_WITH_NOPRICEDEFINED is not set
$result = $this->addline(
$line->desc,