что это?*

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2022-12-17 00:44:00 +10:00
parent 4fafe85639
commit ec2d478a62
26 changed files with 6 additions and 3 deletions

View File

@ -489,6 +489,7 @@ class ProfileController extends Controller
$supply = new Supply(yii::$app->request->post('Supply') ?? yii::$app->request->get('Supply'));
$supply->scenario = $supply::SCENARIO_IMPORT_EXCEL;
$panel = yii::$app->request->post('panel') ?? yii::$app->request->get('panel');
$save = yii::$app->request->post('save') ?? yii::$app->request->get('save') ?? true;
$help = (bool) (yii::$app->request->post('help') ?? yii::$app->request->get('help'));
$target = yii::$app->request->post('account') ?? yii::$app->request->get('account');
$number = yii::$app->request->post('number') ?? yii::$app->request->get('number');
@ -506,7 +507,7 @@ class ProfileController extends Controller
// Запрошена отправка прайса модератору
// Отправка письма модераторам
$mail = Supply::sendMailForImport('ЗАГРУЗИТЬ ФАЙЛ НА СЕРВЕР НАДО');
$mail = Supply::sendMailForImport('НАДО ЗАГРУЗИТЬ ФАЙЛ НА СЕРВЕР (тестирование)');
return [
'_csrf' => yii::$app->request->getCsrfToken(),
@ -532,7 +533,8 @@ class ProfileController extends Controller
if (Account::isMinimalAuthorized()) {
// Авторизован доступ к выполнению этого действия
if ($supply->importExcel((int) $warehouse, $target)) {
if ($save) $supply->saveExcel((int) $warehouse, $target);
else if ($supply->importExcel((int) $warehouse, $target)) {
// Импорт успешно завершён
return [
@ -558,7 +560,8 @@ class ProfileController extends Controller
} else {
// Не получен аккаунт для которого необходимо загрузить каталог
if ($supply->importExcel((int) $warehouse)) {
if ($save) $supply->saveExcel((int) $warehouse, $target);
else if ($supply->importExcel((int) $warehouse)) {
return [
'main' => $this->renderPartial('supplies', compact(

View File

0
mirzaev/skillparts/system/web/css/bootstrap/bootstrap-grid.rtl.css vendored Executable file → Normal file
View File

View File

View File

View File

View File

0
mirzaev/skillparts/system/web/css/bootstrap/bootstrap-utilities.css vendored Executable file → Normal file
View File

View File

View File

View File

0
mirzaev/skillparts/system/web/css/bootstrap/bootstrap.rtl.css vendored Executable file → Normal file
View File

View File

0
mirzaev/skillparts/system/web/css/bootstrap/bootstrap.rtl.min.css vendored Executable file → Normal file
View File

View File

0
mirzaev/skillparts/system/web/js/bootstrap/bootstrap.esm.js vendored Executable file → Normal file
View File

View File

0
mirzaev/skillparts/system/web/js/bootstrap/bootstrap.esm.min.js vendored Executable file → Normal file
View File

View File