]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-130] Дебаг 009
authorAlexander Smirnov <fredeom@mail.ru>
Mon, 2 Sep 2024 11:20:33 +0000 (14:20 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Mon, 2 Sep 2024 11:20:33 +0000 (14:20 +0300)
erp24/services/MotivationService.php

index ed1ad50e69dc4b1ceb981de2abfbabfb4e45b563..9c8f656837633d2846c604c158352cf42d21fa38 100644 (file)
@@ -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()) {