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

index b19e299d387cc8f2bd5d4c0c574abdc348d5b1a9..b225f9a5f0c3b3827aeec762394d7e1dbe25f4ac 100644 (file)
@@ -459,7 +459,7 @@ class MotivationService
                     ->andWhere(['store_id' => $exportImportTable->export_val])
 //                    ->indexBy('type')
                     ->asArray()->all();
-                var_dump($writeOffs);
+//                var_dump($writeOffs);
                 $selfCostProduct = SelfCostProduct::find()->select(['price', 'product_guid'])
                     ->where(['between', 'date', $weekStart, $weekEnd])
                     ->andWhere(['store_id' => $store_id])
@@ -475,8 +475,8 @@ class MotivationService
 
                             foreach ($json as $itemArr) {
                                 $sum += floatval(($selfCostProduct[$itemArr['product_id']]["price"] ?? 0)) * ($itemArr['quantity'] ?? 0);
-                                var_dump($selfCostProduct[$itemArr['product_id']]["price"] ?? 0);
-                                var_dump($itemArr['quantity'] ?? 0);
+//                                var_dump($selfCostProduct[$itemArr['product_id']]["price"] ?? 0);
+//                                var_dump($itemArr['quantity'] ?? 0);
                             }
                         } catch (\Exception $ex) {}
                     }
@@ -490,9 +490,9 @@ class MotivationService
                     }
                 }
             }
-            var_dump("-------");
+//            var_dump("-------");
         }
-        die;
+//        die;
         if ($motivation) {
             $motivation->save();
             if ($motivation->getErrors()) {