]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-130] Дебаг 002
authorAlexander Smirnov <fredeom@mail.ru>
Thu, 29 Aug 2024 13:43:29 +0000 (16:43 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Thu, 29 Aug 2024 13:43:29 +0000 (16:43 +0300)
erp24/services/MotivationService.php

index 999e92afde3d5e45a1854e930878ee6edc12efe4..da01bffbad04149f234cd8a70af734564dc7adc0 100644 (file)
@@ -465,7 +465,10 @@ class MotivationService
                     ->andWhere(['store_id' => $store_id])
                     ->indexBy('product_guid')
                     ->asArray()->all();
-var_dump($writeOffs); var_dump("--------------------------------------------"); var_dump($selfCostProduct); die;
+if (!empty($selfCostProduct)) {
+    var_dump($selfCostProduct);
+    die;
+}
                 foreach (MotivationCostsItem::getWriteOffsItems() as $key) {
                     $data = $writeOffs[$key] ?? null;
                     $sum = 0;