]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Не флот не инт, а целое число и дробь
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 30 Jul 2024 12:28:33 +0000 (15:28 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 30 Jul 2024 12:28:33 +0000 (15:28 +0300)
erp24/services/MotivationService.php

index ca1aeed15b22287fb8bb50d68cacc65993f96416..43b77979479097fb3e2d61e280f8925336548ce2 100644 (file)
@@ -88,8 +88,8 @@ class MotivationService
                         continue;
                     }
                     switch ($motivationCostsItems[$row[0]]->data_type) {
-                        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_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)) {