add inventory total price, rename procurement purchase price

This commit is contained in:
2016-04-04 20:40:55 +02:00
parent a2dcdab49c
commit 5942a5f9f5
7 changed files with 97 additions and 15 deletions

View File

@@ -22,6 +22,22 @@ $options['products'] = $productOptions;
$this->registerJs('inventoryItemIndex.init( '. json_encode($options) .' );');
?>
<style>
.table th{
white-space: normal;
}
.table td{
white-space: normal;
}
.table td.numeric{
width: 110px;
text-align: right;
}
</style>
<div class="inventory-item-index">
<h1><?= Html::encode($this->title) ?></h1>
@@ -86,56 +102,61 @@ $this->registerJs('inventoryItemIndex.init( '. json_encode($options) .' );');
<?php
$columns = [
[
'attribute' => 'item_created_at',
'label' => 'Létrehozva',
'format' => 'datetime'
],
[
'attribute' => 'item_name',
'label' => 'Név',
],
[
'attribute' => 'user_username',
'label' => 'Felhasználó',
],
[
'attribute' => 'inventory_prev_name',
'label' => 'Utolsó leltár'
],
[
'attribute' => 'item_count_system',
'label' => 'Rendszer szerinti mennyiség (db)',
'contentOptions' => ['class' => 'numeric']
],
[
'attribute' => 'item_count',
'label' => 'Leltározott mennyiség (db)',
'contentOptions' => ['class' => 'numeric']
],
[
'attribute' => 'item_count_prev',
'label' => 'Előzö leltár (db)'
'label' => 'Előzö leltár (db)',
'contentOptions' => ['class' => 'numeric']
],
[
'attribute' => 'item_count_in',
'label' => 'Beszerzett mennyiség (db)'
'label' => 'Beszerzett mennyiség (db)',
'contentOptions' => ['class' => 'numeric']
],
[
'attribute' => 'item_count_sold',
'label' => 'Eladott mennyiség (db)',
'contentOptions' => ['class' => 'numeric']
],
[
'attribute' => 'item_difference',
'label' => 'Különbség (db)',
'contentOptions' => ['class' => 'numeric']
],
[
'attribute' => 'item_price_brutto',
'label' => 'Eladási ár (Ft)',
'contentOptions' => ['class' => 'numeric']
],
[
'attribute' => 'item_total_price_brutto',
'label' => 'Összeg (Ft)',
'contentOptions' => ['class' => 'numeric']
],
];