From 0068e3beec311c1084ad528d6aab6f177832e164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Tue, 15 Jul 2025 16:32:35 +0200 Subject: [PATCH] ProductionScheduler: add components while walking through tree --- .../BimIT-Reports/productsBySales/productsBySales.php | 5 +++++ 1 file changed, 5 insertions(+) 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'])); }