$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) {
<div class="mb-3"><?= Html::submitButton('Применить', ['class' => 'btn btn-secondary btn-sm'])?></div>
</div>
<div class="d-flex justify-content-around align-items-center gap-2">
- <div class="mb-3"><?= Html::button('Ð\97агÑ\80Ñ\83зиÑ\82Ñ\8c плановых значений', ['class' => 'btn btn-success btn-sm',
+ <div class="mb-3"><?= Html::button('Ð\97агÑ\80Ñ\83зка плановых значений', ['class' => 'btn btn-success btn-sm',
'onclick' => 'openUploadDictionary();'])?></div>
</div>
</div>