From: marina Date: Wed, 2 Jul 2025 11:27:03 +0000 (+0300) Subject: ERP-433 Отчет по остаткам букетов для МП и причинам, если логика не проходит. Возможн... X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=9321b14ba10ace555b7cf7acdfa2961c37587024;p=erp24_rep%2Fyii-erp24%2F.git ERP-433 Отчет по остаткам букетов для МП и причинам, если логика не проходит. Возможность ручной выгрузки из ERP в Excel --- diff --git a/erp24/actions/marketplace/ReportAction.php b/erp24/actions/marketplace/ReportAction.php index f73f9cde..b12c0840 100644 --- a/erp24/actions/marketplace/ReportAction.php +++ b/erp24/actions/marketplace/ReportAction.php @@ -57,7 +57,7 @@ class ReportAction extends Action 'p1n.articule', new \yii\db\Expression(" ( - 'Коэффициент: ' || COALESCE(mp.reminder_koef::text, 'N/A') || E'\n' || + 'Коэффициент: ' || COALESCE(mp.reminder_koef::text, '-') || E'\n' || COALESCE( concat_ws( E'\n', @@ -98,6 +98,8 @@ class ReportAction extends Action return $this->controller->render('report', [ 'dataProvider' => $dataProvider, + 'isValid' => $isValid, + 'storeId' => $storeId, ]); } diff --git a/erp24/views/marketplace/report.php b/erp24/views/marketplace/report.php index c9392c47..8dd83f9a 100644 --- a/erp24/views/marketplace/report.php +++ b/erp24/views/marketplace/report.php @@ -9,6 +9,8 @@ use yii_app\records\CityStore; /* @var $this yii\web\View */ /* @var $dataProvider yii\data\ActiveDataProvider */ +/* @var $storeId string GUID магазина по дефолту Аэродромная */ +/* @var $isValid bool Флаг на активности на МП */ $this->title = 'Отчет продуктов по активности на МП'; $this->params['breadcrumbs'][] = $this->title; @@ -22,9 +24,10 @@ $this->params['breadcrumbs'][] = $this->title;
'store', - 'value' => Yii::$app->request->post('store', 'dbd70103-2c7b-11e9-9b87-c85b76f0e893'), + 'value' => $storeId, 'data' => CityStore::getAllActiveGuidName(), 'options' => [ + 'required' => true, 'placeholder' => 'Выберите магазин', ], 'pluginOptions' => [ @@ -35,7 +38,7 @@ $this->params['breadcrumbs'][] = $this->title;
'is_valid', - 'value' => Yii::$app->request->post('is_valid'), + 'value' => $isValid, 'data' => [ 'true' => 'Да', 'false' => 'Нет',