From: Alexander Smirnov Date: Mon, 12 Aug 2024 10:34:48 +0000 (+0300) Subject: [ERP-137] Дебаг 10 X-Git-Tag: 1.4~36^2~3 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f1d212a51dd5b3b2dbd92dd09931b4ce87c83e26;p=erp24_rep%2Fyii-erp24%2F.git [ERP-137] Дебаг 10 --- 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()) {