From 73b30f296df609adc77574226d7281c3e9f142ee Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Mon, 12 Aug 2024 13:35:53 +0300 Subject: [PATCH] =?utf8?q?[ERP-137]=20=D0=94=D0=B5=D0=B1=D0=B0=D0=B3=2011?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index dba97352..eba9efdd 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -558,14 +558,11 @@ class MotivationService $motivationValue->motivation_id = $motivation->id; $motivationValue->motivation_group_id = $motivationValueGroupForecast->id; $motivationValue->value_id = $code; - $motivationValue->value_type = $sum_type; } + $motivationValue->value_type = $sum_type; switch ($sum_type) { case MotivationCostsItem::DATA_TYPE_INT: { $motivationValue->value_int = $sum; break; } - default: { $motivationValue->value_float = $sum; if ($code == 6) { - var_dump($sum_type); - die; - }; break; } + default: { $motivationValue->value_float = $sum; break; } } $motivationValue->save(); if ($motivationValue->getErrors()) { -- 2.39.5