From d5a51bc42762e3d4364b07d8ab67e75cf6bc2b69 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Thu, 29 Aug 2024 16:49:16 +0300 Subject: [PATCH] =?utf8?q?[ERP-130]=20=D0=94=D0=B5=D0=B1=D0=B0=D0=B3=20004?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 2b37e456..df6d12b7 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -465,12 +465,7 @@ class MotivationService ->andWhere(['store_id' => $store_id]) ->indexBy('product_guid') ->asArray()->all(); -if (!empty($selfCostProduct)) { - var_dump($weekStart, $weekEnd); - var_dump($writeOffs); - var_dump($selfCostProduct); - die; -} + foreach (MotivationCostsItem::getWriteOffsItems() as $key) { $data = $writeOffs[$key] ?? null; $sum = 0; -- 2.39.5