From 90e8a2363ef35ef10fba26f8286906398d1d77a6 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Mon, 2 Sep 2024 14:20:33 +0300 Subject: [PATCH] =?utf8?q?[ERP-130]=20=D0=94=D0=B5=D0=B1=D0=B0=D0=B3=20009?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index ed1ad50e..9c8f6568 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -454,11 +454,12 @@ class MotivationService } if ($exportImportTable) { - $writeOffs = WriteOffs::find()->select(['items', 'type']) + $writeOffs = WriteOffs::find()->select(['items', 'type', 'date']) ->where(['between', 'date', $weekStart, $weekEnd]) ->andWhere(['store_id' => $exportImportTable->export_val]) ->asArray()->all(); - +var_dump($writeOffs); +var_dump("---------------"); $selfCostProduct = SelfCostProduct::find()->select(['price', 'product_guid']) ->where(['between', 'date', $weekStart, $weekEnd]) ->andWhere(['store_id' => $store_id]) @@ -491,7 +492,7 @@ class MotivationService } } } - +die; if ($motivation) { $motivation->save(); if ($motivation->getErrors()) { -- 2.39.5