From 22b3c295f1c60b4abac99063cfe5906f2e0e3d51 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 26 Jul 2024 15:00:57 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); -- 2.39.5