fix parent line on create with origin

This commit is contained in:
Christophe Battarel 2022-02-15 10:23:43 +01:00
parent 7a1c4172a6
commit 6c6c854eae
2 changed files with 3 additions and 3 deletions

View File

@ -401,7 +401,7 @@ if (empty($reshook))
}
// Defined the new fk_parent_line
if ($result > 0 && $lines[$i]->product_type == 9) {
if ($result > 0) {
$fk_parent_line = $result;
}
}

View File

@ -1220,7 +1220,7 @@ if (empty($reshook))
$object->lines[] = $line; // insert new line in current object
// Defined the new fk_parent_line
if ($result > 0 && $line->product_type == 9) {
if ($result > 0) {
$fk_parent_line = $result;
}
}
@ -1666,7 +1666,7 @@ if (empty($reshook))
}
// Defined the new fk_parent_line
if ($result > 0 && $lines[$i]->product_type == 9) {
if ($result > 0) {
$fk_parent_line = $result;
}
}