fix parent line on create with no originid
This commit is contained in:
parent
6c6c854eae
commit
01ef9b64ee
@ -1054,7 +1054,7 @@ class Commande extends CommonOrder
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// Defined the new fk_parent_line
|
// Defined the new fk_parent_line
|
||||||
if ($result > 0 && $line->product_type == 9) {
|
if ($result > 0) {
|
||||||
$fk_parent_line = $result;
|
$fk_parent_line = $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -790,7 +790,7 @@ class Facture extends CommonInvoice
|
|||||||
$result = $newinvoiceline->insert();
|
$result = $newinvoiceline->insert();
|
||||||
|
|
||||||
// Defined the new fk_parent_line
|
// Defined the new fk_parent_line
|
||||||
if ($result > 0 && $newinvoiceline->product_type == 9) {
|
if ($result > 0) {
|
||||||
$fk_parent_line = $result;
|
$fk_parent_line = $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user