add inventory
This commit is contained in:
64
frontend/views/product/inventory.php
Normal file
64
frontend/views/product/inventory.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\grid\GridView;
|
||||
use yii\helpers\Url;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $searchModel frontend\models\ProductSearch */
|
||||
/* @var $dataProvider yii\data\ActiveDataProvider */
|
||||
|
||||
$this->title = "Termék leltár";
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="product-index">
|
||||
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
<?php // echo $this->render('_search_inventory', ['model' => $searchModel]); ?>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
echo Html::a('XLS letöltése',Url::current(['ProductInventorySearch[output]' => 'xls']),['class' => 'btn btn-primary'] );
|
||||
?>
|
||||
<p>
|
||||
<b>Kassza:</b> <?php echo $searchModel->account->name; ?>
|
||||
</p>
|
||||
|
||||
<?= GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'columns' => [
|
||||
[
|
||||
'attribute' => 'product_id',
|
||||
'label' => 'Termék azonosító'
|
||||
],
|
||||
[
|
||||
'attribute' => 'product_name',
|
||||
'label' => 'Termék neve'
|
||||
],
|
||||
[
|
||||
'attribute' => 'account_name',
|
||||
'label' => 'Kassza'
|
||||
],
|
||||
[
|
||||
'attribute' => 'product_number',
|
||||
'label' => 'Termék szám'
|
||||
],
|
||||
[
|
||||
'attribute' => 'product_barcode',
|
||||
'label' => 'Termék vonalkód'
|
||||
],
|
||||
[
|
||||
'attribute' => 'product_stock',
|
||||
'label' => 'Termék raktáron'
|
||||
],
|
||||
// [
|
||||
// 'attribute' => 'product_sold',
|
||||
// 'label' => 'Termék eladva'
|
||||
// ],
|
||||
|
||||
|
||||
],
|
||||
]); ?>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user