Commit e147d39127620e8971a0035fe9a6a3bde6530784
Merge remote-tracking branch 'origin/master'
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
common/models/GoodsView.php
... | ... | @@ -30,6 +30,9 @@ class GoodsView extends \backend\components\base\BaseActiveRecord |
30 | 30 | /** |
31 | 31 | * @inheritdoc |
32 | 32 | */ |
33 | + public $price_currency_id; | |
34 | + public $price_margin_id; | |
35 | + | |
33 | 36 | public static function tableName() |
34 | 37 | { |
35 | 38 | return '{{%goods_view}}'; |
... | ... | @@ -75,6 +78,8 @@ class GoodsView extends \backend\components\base\BaseActiveRecord |
75 | 78 | } |
76 | 79 | |
77 | 80 | |
81 | + | |
82 | + | |
78 | 83 | public function attributeLabels() |
79 | 84 | { |
80 | 85 | return [ | ... | ... |
frontend/controllers/GoodsController.php
... | ... | @@ -26,7 +26,7 @@ class GoodsController extends Controller { |
26 | 26 | Yii::$app->session->setFlash('price_margin_id', 1); |
27 | 27 | |
28 | 28 | $searchModel = new GoodsViewSearch(); |
29 | - $goods_provider = $searchModel->searchCrosses($arr); | |
29 | + $goods_provider = $searchModel->search($arr); | |
30 | 30 | |
31 | 31 | |
32 | 32 | //$cross_arr = DetailsCrosses::find()->select('ARTICLE, BRAND')->where(['CROSS_ARTICLE' => '0092S40090', 'CROSS_BRAND' => 'BOSCH'])->asArray()->all(); | ... | ... |