From: marina Date: Wed, 21 Aug 2024 10:42:17 +0000 (+0300) Subject: ERP-102 Приёмник для эксель файла (корректировка) X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f31fde4926fed3784976768601f428aca3830373;p=erp24_rep%2Fyii-erp24%2F.git ERP-102 Приёмник для эксель файла (корректировка) --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 7dd71da1..707579be 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -238,11 +238,11 @@ class MotivationService $year = ((int)$row[2]) ?? -1; $month = ((int)$row[3]) ?? -1; if ($year > 2030 || $year < 2023) { - $error = "Не корректно указан год [2,0]"; + $error = "Некорректно указан год [2,0]"; break; } if ($month < 1 || $month > 12) { - $error = "Не корректно указан месяц [3,0]"; + $error = "Некорректно указан месяц [3,0]"; break; } @@ -263,7 +263,7 @@ class MotivationService } /** @var $motivationCostsItems MotivationCostsItem[] */ if ($motivationCostsItems[$row[0]]->name != ($row[1] ?? 'NO_NAME')) { - $error = "Не корректно название элемента '" . ($row[1] ?? '') . "' Ожидается: '" . $motivationCostsItems[$row[0]]->name . "' [$ind,1]"; + $error = "Некорректно название элемента '" . ($row[1] ?? '') . "' Ожидается: '" . $motivationCostsItems[$row[0]]->name . "' [$ind,1]"; break; } if (trim($row[2]) == '') {