ProductionScheduler: add components while walking through tree
This commit is contained in:
@@ -405,6 +405,11 @@ HAVING
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
// always add component to response
|
||||||
|
$response[] = array(
|
||||||
|
'ecmproduct_id' => $productId,
|
||||||
|
'quantity' => $quantity
|
||||||
|
);
|
||||||
while ($c = $db->fetchByAssoc($crows)) {
|
while ($c = $db->fetchByAssoc($crows)) {
|
||||||
$response = array_merge($response, getProductComponents($c['ecmcomponent_id'], $quantity * $c['quantity']));
|
$response = array_merge($response, getProductComponents($c['ecmcomponent_id'], $quantity * $c['quantity']));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user