]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Исправление
authorAlexander Smirnov <fredeom@mail.ru>
Fri, 26 Jul 2024 12:17:14 +0000 (15:17 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Fri, 26 Jul 2024 12:17:14 +0000 (15:17 +0300)
erp24/services/MotivationService.php

index 238cdf10e5b4f10bdfe0d9beeb692abcd24b7e61..8b70d5557ada1c743b9a72cfedb60ddd8fd75332 100644 (file)
@@ -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)) {