Переглянути джерело

[Administration] Abonnements > liste : ajustement de l'ordre des points de vente dans le champs le champs de recherche

feature/rotating_product
Guillaume Bourgeois 4 місяці тому
джерело
коміт
53fdfdfd5d
1 змінених файлів з 2 додано та 1 видалено
  1. +2
    -1
      backend/views/subscription/index.php

+ 2
- 1
backend/views/subscription/index.php Переглянути файл

@@ -37,6 +37,7 @@ termes.
*/

use common\helpers\GlobalParam;
use domain\_\StatusInterface;
use domain\PointSale\PointSale\PointSale;
use domain\Product\Product\Product;
use domain\Product\Product\ProductModule;
@@ -110,7 +111,7 @@ $subscriptionsArray = Subscription::searchAll() ;
'attribute' => 'id_point_sale',
'label' => 'Point de vente',
'format' => 'raw',
'filter' => ArrayHelper::map(PointSale::find()->where(['id_producer' => GlobalParam::getCurrentProducerId()])->asArray()->all(), 'id', 'name'),
'filter' => ArrayHelper::map(PointSale::find()->where(['id_producer' => GlobalParam::getCurrentProducerId(), 'status' => StatusInterface::STATUS_ONLINE])->orderBy('is_bread_box ASC, name ASC')->asArray()->all(), 'id', 'name'),
'value' => function($model) {
if($model->pointSale) {
return Html::encode($model->pointSale->name) ;

Завантаження…
Відмінити
Зберегти