From: Alexander Smirnov Date: Mon, 2 Sep 2024 11:20:33 +0000 (+0300) Subject: [ERP-130] Дебаг 009 X-Git-Tag: 1.4~11^2~16 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=90e8a2363ef35ef10fba26f8286906398d1d77a6;p=erp24_rep%2Fyii-erp24%2F.git [ERP-130] Дебаг 009 --- 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()) {