From: Alexander Smirnov Date: Fri, 26 Jul 2024 15:17:04 +0000 (+0300) Subject: Исправлено X-Git-Tag: 1.4~45^2~11 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e3796c5b00fa7425b4443a9a7251344ed90cbbaf;p=erp24_rep%2Fyii-erp24%2F.git Исправлено --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 8b70d555..85375e48 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -83,7 +83,7 @@ class MotivationService $error = "Не корректно название элемента '" . ($row[1] ?? '') . "' Ожидается: '" . $motivationCostsItems[$row[0]]->name . "' [$ind,1]"; break; } - if (($row[2] ?? 'NO_NAME') == 'NO_NAME') { + if ($row[2] == '' && $row[2] !== 0) { $error = "Не корректно значение элемента [$ind,2]"; break; }