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

index 8b70d5557ada1c743b9a72cfedb60ddd8fd75332..85375e48b127199521bb7d7332573181e5333907 100644 (file)
@@ -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;
                     }