WIP : fix fetch mo parent to create mo child

This commit is contained in:
atm-lena 2022-02-15 15:03:21 +01:00
parent 81e75f401e
commit 9e5d5a6295

View File

@ -151,7 +151,7 @@ if (empty($reshook)) {
$objectbomchildline->fetch($id_bom_line);
$TMoLines = $moline->fetchAll('', '', '1', '', array('origin_id' => $id_bom_line));
$TMoLines = $moline->fetchAll('DESC', 'rowid', '1', '', array('origin_id' => $id_bom_line));
foreach ($TMoLines as $moline) {
$_POST['fk_bom'] = $objectbomchildline->fk_bom_child;