From 872d915a918d2bb3604f04cf59632140b9c2ccf9 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 26 Jul 2024 15:17:14 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 238cdf10..8b70d555 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -88,8 +88,8 @@ class MotivationService break; } switch ($motivationCostsItems[$row[0]]->data_type) { - case MotivationCostsItem::DATA_TYPE_INT: { if (is_int($row[2])) { $value = (int)$row[2]; } else { $error = "Не инт [$ind,2]"; }; break; } - case MotivationCostsItem::DATA_TYPE_FLOAT: { if (is_int($row[2]) || is_float($row[2])) { $value = (float)$row[2]; } else {$error = "Не флот [$ind,2]"; } break; } + case MotivationCostsItem::DATA_TYPE_INT: { if (is_int($row[2])) { $value = (int)$row[2]; } else { $error = "Не инт [$ind,2] '" . $row[2] . "'"; }; break; } + case MotivationCostsItem::DATA_TYPE_FLOAT: { if (is_int($row[2]) || is_float($row[2])) { $value = (float)$row[2]; } else {$error = "Не флот [$ind,2] '" . $row[2] . "'"; } break; } case MotivationCostsItem::DATA_TYPE_STRING: { $value = $row[2]; break; } } if (!empty($error)) { -- 2.39.5