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