]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-102 Приёмник для эксель файла (корректировка)
authormarina <m.zozirova@gmail.com>
Fri, 9 Aug 2024 01:51:31 +0000 (04:51 +0300)
committermarina <m.zozirova@gmail.com>
Fri, 9 Aug 2024 01:51:31 +0000 (04:51 +0300)
erp24/actions/motivation/IndexAction.php
erp24/web/js/motivation/index.js

index c103b8e782eb1f64867f2df4096ab76785439254..82ca192b21f381f9ae9a44467e5b37d990488779 100644 (file)
@@ -33,7 +33,7 @@ class IndexAction extends Action
                 $adjustment = Yii::$app->request->post('adjustment');
 
                 if ($adjustment && in_array(Admin::findOne(Yii::$app->user->id)->group_id, Motivation::getAdjustmentEditors())) {
-                return implode('<br>', ['Вы не можете вносить корректировки']);
+                    return implode('<br>', ['Вы не можете вносить корректировки']);
                 }
 
                 $fileName =  $adjustment ? '/template_adjustment_temp.xlsx' : '/template_plan_temp.xlsx';
index db6b338f5cdad2e98a882d972d19d64fa63b862e..c205765530c3b3ff86984ed5ac260759f3c42e08 100644 (file)
@@ -73,6 +73,7 @@ function openUploadDictionary(buttonType) {
                 body: formData,
             });
             const text = await response.text();
+            console.log(text)
             if (text === 'not ok') {
                 info.innerHTML = '<span style="color:red">Не смог загрузить файл</span>';
             } else if (text.replaceAll('<br>', '') === '') {