浏览代码

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

feature/rotating_product
Guillaume Bourgeois 5 个月前
父节点
当前提交
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) ;

正在加载...
取消
保存