]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-137] Дебаг 9
authorAlexander Smirnov <fredeom@mail.ru>
Mon, 12 Aug 2024 10:33:21 +0000 (13:33 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Mon, 12 Aug 2024 10:33:21 +0000 (13:33 +0300)
erp24/services/MotivationService.php

index 01ea35570186c671903408b585d44e1b00be5771..68a34eb94f2339810cb895c07d384a20cd94d0c8 100644 (file)
@@ -553,6 +553,10 @@ class MotivationService
                         };
                     }
                 }
+                if ($code == 6) {
+                    var_dump($sum_type);
+                    die;
+                }
                 if (!$motivationValue) {
                     $motivationValue = new MotivationValue;
                     $motivationValue->motivation_id = $motivation->id;
@@ -568,9 +572,6 @@ class MotivationService
                 if ($motivationValue->getErrors()) {
                     throw new \Exception(Json::encode($motivationValue->getErrors()));
                 }
-                if ($code == 6) {
-                    var_dump($motivationValue);
-                }
             }
         }
     }