add changes to procurement

This commit is contained in:
2015-09-25 17:25:16 +02:00
parent 28caac03dc
commit 5c9db98110
14 changed files with 1478 additions and 87 deletions

View File

@@ -13,7 +13,11 @@ $this->params['breadcrumbs'][] = $this->title;
<div class="procurement-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<?php echo $this->render('_search', [
'model' => $searchModel,
'users' => $users,
'products' => $products,
'warehouses' => $warehouses,]); ?>
<p>
<?= Html::a(Yii::t('common/procurement', 'Create Procurement'), ['create'], ['class' => 'btn btn-success']) ?>
@@ -22,26 +26,29 @@ $this->params['breadcrumbs'][] = $this->title;
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'id_warehouse',
'value' => 'wareHouseName'
],
'id_user',
'id_product',
[
'attribute' => 'id_user',
'value' => 'userName'
],
[
'attribute' => 'id_product',
'value' => 'productName'
],
'count',
'stock',
'purchase_price',
// 'description',
'created_at:datetime',
'updated_at:datetime',
[
'class' => 'yii\grid\ActionColumn',
'template' => '{view}'
'template' => '{view}',
],
],
]); ?>