From: Alexander Smirnov Date: Mon, 29 Jul 2024 11:59:07 +0000 (+0300) Subject: Пустой план принимается X-Git-Tag: 1.4~45^2~7 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=fe5f434d2a1456e8bf92a7cd42c020a72be4986e;p=erp24_rep%2Fyii-erp24%2F.git Пустой план принимается --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 66d724f6..09ec4cd0 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -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) {