inventory changes
This commit is contained in:
@@ -20,6 +20,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'model' => $model,
|
||||
'attributes' => [
|
||||
'id_inventory',
|
||||
'name',
|
||||
['attribute'=>'id_user',
|
||||
'value'=>$model->userName
|
||||
],
|
||||
@@ -31,8 +32,32 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
|
||||
|
||||
<p>
|
||||
<?= Html::a(Yii::t('common/inventory', 'Új termék'), ['inventory-item/create','id' =>$model->id_inventory], ['class' => 'btn btn-success']) ?>
|
||||
<?= Html::a(Yii::t('common/inventory', 'Új termék felvétele a leltárba'), ['inventory-item/create','id' =>$model->id_inventory], ['class' => 'btn btn-success']) ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Magyarázat:
|
||||
<ul>
|
||||
<li>
|
||||
Előző leltár (db): az előző leltárban összeszámolt mennyiség. Ha ez a termék első leltározása akkor 0.
|
||||
</li>
|
||||
<li>
|
||||
Beszerzett mennyiség: Az előző leltár óta történt beszerzett mennyiségek összege
|
||||
</li>
|
||||
<li>
|
||||
Eladott mennyiség: Az előző leltár óta eladott darabszám összege
|
||||
</li>
|
||||
<li>
|
||||
Leltározott mennyiség: A felhasználó által összeszámolt és leltár létrehozásakor beírt mennyiség
|
||||
</li>
|
||||
<li>
|
||||
Rendszer szerinti mennyiség: a rendszer által számolt és aktuális látott mennyiség
|
||||
</li>
|
||||
<li>
|
||||
Különbség: = "Leltározott mennyiség - ( "Előző leltár" + "Beszerzett mennyiség" - "Eladott mennyiség" )
|
||||
</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
echo GridView::widget( [
|
||||
@@ -52,6 +77,11 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'attribute' => 'user_username',
|
||||
'label' => 'Felhasználó',
|
||||
|
||||
],
|
||||
[
|
||||
'attribute' => 'inventory_prev_name',
|
||||
'label' => 'Utolsó leltár'
|
||||
|
||||
],
|
||||
[
|
||||
'attribute' => 'item_count_prev',
|
||||
@@ -72,6 +102,11 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'attribute' => 'item_count',
|
||||
'label' => 'Leltározott mennyiség (db)',
|
||||
|
||||
],
|
||||
[
|
||||
'attribute' => 'item_count_system',
|
||||
'label' => 'Rendszer szerinti mennyiség (db)',
|
||||
|
||||
],
|
||||
[
|
||||
'attribute' => 'item_difference',
|
||||
|
||||
@@ -11,9 +11,10 @@ use yii\widgets\ActiveForm;
|
||||
<div class="inventory-form">
|
||||
|
||||
<?php $form = ActiveForm::begin(); ?>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<?php echo $form->field($model, "name")->textInput()?>
|
||||
<?= Html::submitButton($model->isNewRecord ? Yii::t('common/inventory', 'Létrehoz') : Yii::t('common/inventory', 'Módosít'), [ 'name'=>'Inventory[submit]' ,'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'columns' => [
|
||||
|
||||
'id_inventory',
|
||||
'id_user',
|
||||
'name',
|
||||
[ 'attribute' => 'id_user', "value" =>"userName" ],
|
||||
'created_at:datetime',
|
||||
|
||||
['class' => 'yii\grid\ActionColumn',
|
||||
@@ -34,7 +35,13 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
if ( $action == 'view' ){
|
||||
return Url::to(['inventory-item/index' , 'id'=> $model->id_inventory]);
|
||||
}
|
||||
}
|
||||
},
|
||||
'buttons' =>[
|
||||
'view' =>function ($url, $model, $key) {
|
||||
return Html::a('Részletek', $url,['class' => 'btn btn-xs btn-primary',
|
||||
]) ;
|
||||
}
|
||||
]
|
||||
|
||||
],
|
||||
],
|
||||
|
||||
@@ -21,6 +21,7 @@ $this->params['breadcrumbs'][] = "Leltár";
|
||||
'model' => $model,
|
||||
'attributes' => [
|
||||
'id_inventory',
|
||||
'name',
|
||||
['attribute'=>'id_user',
|
||||
'value'=>$model->userName
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user