From: Alexander Smirnov Date: Fri, 26 Jul 2024 12:00:57 +0000 (+0300) Subject: Исправление X-Git-Tag: 1.4~45^2~15 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=22b3c295f1c60b4abac99063cfe5906f2e0e3d51;p=erp24_rep%2Fyii-erp24%2F.git Исправление --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 2cc58768..238cdf10 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -15,7 +15,7 @@ class MotivationService $motivationCostsItems = MotivationCostsItem::find()->indexBy('code')->all(); $spreadsheets = IOFactory::load($path); $errors = []; - foreach ($spreadsheets->getAllSheets() as $spreadSheet) { + foreach ($spreadsheets->getAllSheets() as $indSS => $spreadSheet) { $rows = []; $storeStr = true; $error = ''; @@ -137,7 +137,7 @@ class MotivationService } } } - $errors []= empty($error) ? '' : $error; + $errors []= empty($error) ? '' : $indSS . ":" . $error; } return compact('errors');