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

index 68a34eb94f2339810cb895c07d384a20cd94d0c8..dba97352c2b0b348990feb4f0b82a3fb05b1d7dd 100644 (file)
@@ -553,10 +553,6 @@ class MotivationService
                         };
                     }
                 }
-                if ($code == 6) {
-                    var_dump($sum_type);
-                    die;
-                }
                 if (!$motivationValue) {
                     $motivationValue = new MotivationValue;
                     $motivationValue->motivation_id = $motivation->id;
@@ -566,7 +562,10 @@ class MotivationService
                 }
                 switch ($sum_type) {
                     case MotivationCostsItem::DATA_TYPE_INT: { $motivationValue->value_int = $sum; break; }
-                    default: { $motivationValue->value_float = $sum; break; }
+                    default: { $motivationValue->value_float = $sum; if ($code == 6) {
+                        var_dump($sum_type);
+                        die;
+                    }; break; }
                 }
                 $motivationValue->save();
                 if ($motivationValue->getErrors()) {