Fix Detsta Import -> Transfer type cash , when unsuccessful
This commit is contained in:
@@ -151,7 +151,10 @@ class InventoryItemForm extends Model{
|
||||
if ( isset($this->last_inventory_item ) ){
|
||||
$query->andWhere([ '>', 'procurement.created_at' ,$this->last_inventory_item->created_at]);
|
||||
}
|
||||
|
||||
|
||||
//$query->andWhere([ '>', 'procurement.created_at' ,$this->inventory->created_at]);
|
||||
|
||||
|
||||
if ( $this->type == 'product') {
|
||||
$query->andWhere(['product.id_product' => $this->product->id_product]);
|
||||
}else{
|
||||
|
||||
@@ -39,6 +39,19 @@ $this->registerJs('inventoryItemIndex.init( ' . json_encode($options) . ' );');
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.col-b{
|
||||
/*background-color: #00a157;*/
|
||||
}
|
||||
|
||||
.table-striped > tbody > tr:nth-of-type(even) td.col-b {
|
||||
background-color: #DFE3E8;
|
||||
/*background-color: #D3D7DC;*/
|
||||
}
|
||||
.table-striped > tbody > tr:nth-of-type(odd) td.col-b {
|
||||
/*background-color: #E0E0E0;*/
|
||||
background-color: #ECECEC;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="inventory-item-index">
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
@@ -101,7 +114,8 @@ $this->registerJs('inventoryItemIndex.init( ' . json_encode($options) . ' );');
|
||||
],
|
||||
[
|
||||
'attribute' => 'inventory_prev_name',
|
||||
'label' => 'Utolsó leltár'
|
||||
'label' => 'Utolsó leltár',
|
||||
'contentOptions' => ['class' => 'col-b']
|
||||
],
|
||||
[
|
||||
'attribute' => 'item_count_system',
|
||||
@@ -112,7 +126,7 @@ $this->registerJs('inventoryItemIndex.init( ' . json_encode($options) . ' );');
|
||||
[
|
||||
'attribute' => 'item_count',
|
||||
'label' => 'Leltározott mennyiség (db)',
|
||||
'contentOptions' => ['class' => 'numeric']
|
||||
'contentOptions' => ['class' => 'numeric col-b']
|
||||
|
||||
],
|
||||
[
|
||||
@@ -124,7 +138,7 @@ $this->registerJs('inventoryItemIndex.init( ' . json_encode($options) . ' );');
|
||||
[
|
||||
'attribute' => 'item_count_in',
|
||||
'label' => 'Beszerzett mennyiség (db)',
|
||||
'contentOptions' => ['class' => 'numeric']
|
||||
'contentOptions' => ['class' => 'numeric col-b' ]
|
||||
|
||||
],
|
||||
[
|
||||
@@ -136,7 +150,7 @@ $this->registerJs('inventoryItemIndex.init( ' . json_encode($options) . ' );');
|
||||
[
|
||||
'attribute' => 'item_difference',
|
||||
'label' => 'Különbség (db)',
|
||||
'contentOptions' => ['class' => 'numeric']
|
||||
'contentOptions' => ['class' => 'numeric col-b']
|
||||
|
||||
],
|
||||
[
|
||||
@@ -147,7 +161,7 @@ $this->registerJs('inventoryItemIndex.init( ' . json_encode($options) . ' );');
|
||||
[
|
||||
'attribute' => 'item_total_price_brutto',
|
||||
'label' => 'Összeg (Ft)',
|
||||
'contentOptions' => ['class' => 'numeric']
|
||||
'contentOptions' => ['class' => 'numeric col-b']
|
||||
],
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user