|
|
@@ -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) ; |