From f1d212a51dd5b3b2dbd92dd09931b4ce87c83e26 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Mon, 12 Aug 2024 13:34:48 +0300 Subject: [PATCH] =?utf8?q?[ERP-137]=20=D0=94=D0=B5=D0=B1=D0=B0=D0=B3=2010?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 68a34eb9..dba97352 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -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()) { -- 2.39.5