From 501c78829645c31dd7639be86d14320cfc8ff955 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 26 Jul 2024 13:31:00 +0300 Subject: [PATCH] =?utf8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B8?= =?utf8?q?=D0=B5=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 11 +++-------- erp24/views/motivation/index.php | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 595dc725..a6aa1e25 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -17,23 +17,18 @@ class MotivationService $errors = []; foreach ($spreadsheets->getAllSheets() as $spreadSheet) { $rows = []; - $finish = false; $storeStr = true; $error = ''; $motivation = null; foreach ($spreadSheet->getRowIterator() as $ind => $spreadSheetRow) { + if (in_array($ind, [1, 3])) { + continue; + } $row = []; foreach ($spreadSheetRow->getCellIterator() as $spreadSheetRowCell) { $value = $spreadSheetRowCell->getValue(); - if ($value == '###') { - $finish = true; - break; - } $row []= $value; } - if ($finish) { - break; - } if ($storeStr) { $store = CityStore::find()->where(['id' => $row[0] ?? -1])->one(); if (!$store) { diff --git a/erp24/views/motivation/index.php b/erp24/views/motivation/index.php index f43c5475..5a91c905 100644 --- a/erp24/views/motivation/index.php +++ b/erp24/views/motivation/index.php @@ -57,7 +57,7 @@ $this->registerJsFile('/js/motivation/index.js', ['position' => \yii\web\View::P
'btn btn-secondary btn-sm'])?>
-
'btn btn-success btn-sm', +
'btn btn-success btn-sm', 'onclick' => 'openUploadDictionary();'])?>
-- 2.39.5