From: Alexander Smirnov Date: Thu, 29 Aug 2024 13:49:16 +0000 (+0300) Subject: [ERP-130] Дебаг 004 X-Git-Tag: 1.4~11^2~25 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=d5a51bc42762e3d4364b07d8ab67e75cf6bc2b69;p=erp24_rep%2Fyii-erp24%2F.git [ERP-130] Дебаг 004 --- 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;