]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Пустой план принимается
authorAlexander Smirnov <fredeom@mail.ru>
Mon, 29 Jul 2024 11:59:07 +0000 (14:59 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Mon, 29 Jul 2024 11:59:07 +0000 (14:59 +0300)
erp24/services/MotivationService.php

index 66d724f6931f611b62d06aca8eeac3c65a3448e7..09ec4cd08fe55122b58b2afa11da13e11c2a2770 100644 (file)
@@ -87,8 +87,7 @@ class MotivationService
                         $error = "Не корректно название элемента '" . ($row[1] ?? '') . "' Ожидается: '" . $motivationCostsItems[$row[0]]->name . "' [$ind,1]";
                         break;
                     }
-                    if ($row[2]  == '' && $row[2] !== 0) {
-                        $error = "Не корректно значение элемента [$ind,2]";
+                    if ($row[2]  == '') {
                         break;
                     }
                     switch ($motivationCostsItems[$row[0]]->data_type) {