diff --git a/modules/EcmReports/BimIT-Reports/productsBySales/productsBySales.php b/modules/EcmReports/BimIT-Reports/productsBySales/productsBySales.php index 8d1e5a48..012e360d 100644 --- a/modules/EcmReports/BimIT-Reports/productsBySales/productsBySales.php +++ b/modules/EcmReports/BimIT-Reports/productsBySales/productsBySales.php @@ -405,6 +405,11 @@ HAVING ) ); } else { + // always add component to response + $response[] = array( + 'ecmproduct_id' => $productId, + 'quantity' => $quantity + ); while ($c = $db->fetchByAssoc($crows)) { $response = array_merge($response, getProductComponents($c['ecmcomponent_id'], $quantity * $c['quantity'])); }