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

index 2cc587686575904d7c07c1b15549ded46d084f78..238cdf10e5b4f10bdfe0d9beeb692abcd24b7e61 100644 (file)
@@ -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');