From: Alexander Smirnov Date: Mon, 2 Sep 2024 11:10:03 +0000 (+0300) Subject: [ERP-130] Дебаг 007 X-Git-Tag: 1.4~11^2~18 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f93864623687b5e78cc50497c28f45199b75dacd;p=erp24_rep%2Fyii-erp24%2F.git [ERP-130] Дебаг 007 --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index b19e299d..b225f9a5 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -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()) {