From b7da6144fd27ebf0c084a7644b08cb3bf14f4579 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 17 Jun 2025 10:41:41 +0300 Subject: [PATCH] =?utf8?q?ERP-360=20=D0=A1=D0=B1=D0=BE=D1=80=D0=BA=D0=B0?= =?utf8?q?=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20=D0=B0?= =?utf8?q?=D0=B2=D1=82=D0=BE=D0=BF=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/controllers/AutoPlannogrammaController.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/erp24/controllers/AutoPlannogrammaController.php b/erp24/controllers/AutoPlannogrammaController.php index 85f8fd7d..50430978 100644 --- a/erp24/controllers/AutoPlannogrammaController.php +++ b/erp24/controllers/AutoPlannogrammaController.php @@ -157,11 +157,8 @@ class AutoPlannogrammaController extends BaseController foreach ($productData['values'] as &$value) { $storeId = $value['store_id']; $value['title'] = []; - var_dump($productId, $storeId);die(); - if (isset($forecast[$storeId][$guid])) { - - $forecastData = $forecast[$storeId][$guid]; - + if (isset($forecast[$storeId][$productId])) { + $forecastData = $forecast[$storeId][$productId]; foreach ($forecastData as $type => $groups) { foreach ($groups as $group => $amount) { $value['title'][$type][$group] = $amount; -- 2.39.5