From: Alexander Smirnov Date: Fri, 26 Jul 2024 12:17:14 +0000 (+0300) Subject: Исправление X-Git-Tag: 1.4~45^2~14 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=872d915a918d2bb3604f04cf59632140b9c2ccf9;p=erp24_rep%2Fyii-erp24%2F.git Исправление --- 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)) {