add waste to invetory gui

This commit is contained in:
Roland Schneider 2017-05-01 22:04:05 +02:00
parent 010ff62506
commit 1a04a6e351
3 changed files with 10 additions and 2 deletions

View File

@ -81,6 +81,7 @@ class InventoryItemController extends Controller
['item_count_sold', 'Eladott mennyiség (db)'],
['item_count_in', 'Beszerzett mennyiség (db)'],
['item_count', 'Leltározott mennyiség (db)'],
['item_count_waste', 'Selejtezett mennyiség (db)'],
['item_purchase_price_net', 'Nettó beszerezési ár (Ft)'],
['item_net_stock_money', 'Nettó készlet érték (Ft)'],
['item_stock_missing_count', 'Különbség (db)'],
@ -88,7 +89,7 @@ class InventoryItemController extends Controller
['item_stock_missing_money', 'Leltár hiány (Ft)'],
['item_count_system', 'Rendszer szerinti mennyiség (db)'],
];
$cols = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P'];
$cols = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P','Q'];
/** @noinspection PhpUndefinedMethodInspection */
$models = $dataProvider->getModels();

View File

@ -67,6 +67,7 @@ class InventoryItemSearch extends InventoryItem
'coalesce(inventory_item.count_sold,0) as item_count_sold',
'coalesce(inventory_item.count,0) as item_count',
'coalesce(inventory_item.count_system,0) as item_count_system',
'coalesce(inventory_item.count_waste,0) as item_count_waste',
'inventory.created_at as inventory_created_at',
'inventory_prev.id_inventory as inventory_prev_id_inventory',
'inventory_prev.name as inventory_prev_name',
@ -107,7 +108,7 @@ class InventoryItemSearch extends InventoryItem
['item_count_sold', 'item_count_sold'],
['item_count_in', 'item_count_in'],
['item_count', 'item_count'],
['item_count', 'item_count'],
['item_count_waste', 'item_count_waste'],
['item_difference', 'item_difference'],
['item_count_system', 'item_count_system'],
['inventory.id_inventory', 'inventory_id_inventory'],

View File

@ -152,6 +152,12 @@ $this->registerJs('inventoryItemIndex.init( ' . json_encode($options) . ' );');
'label' => 'Beszerzett mennyiség (db)',
'contentOptions' => ['class' => 'numeric ' ]
],
[
'attribute' => 'item_count_waste',
'label' => 'Selejtezett mennyiség (db)',
'contentOptions' => ['class' => 'numeric ' ]
],
[
'attribute' => 'item_count_sold',