From 92bfd903dc929a38e7d3b93fc8a9592db859a0ce Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Sun, 28 Feb 2016 19:08:05 +0000 Subject: [PATCH] bootstrapify inventory details form, fixed multilocation support that was broken (#116) --- application/views/item_kits/form.php | 2 +- application/views/items/count_details.php | 207 ++++++++++------------ application/views/items/inventory.php | 2 +- application/views/sales/suspended.php | 2 +- 4 files changed, 101 insertions(+), 112 deletions(-) diff --git a/application/views/item_kits/form.php b/application/views/item_kits/form.php index 4b022ac56..476b1ee42 100644 --- a/application/views/item_kits/form.php +++ b/application/views/item_kits/form.php @@ -41,7 +41,7 @@ - + diff --git a/application/views/items/count_details.php b/application/views/items/count_details.php index d6b978b2c..620a1d4ca 100644 --- a/application/views/items/count_details.php +++ b/application/views/items/count_details.php @@ -1,106 +1,94 @@ -item_id, array('id'=>'item_form')); ?> +item_id, array('id'=>'item_form', 'class'=>'form-horizontal')); ?>
-
lang->line('common_delete'); ?> lang->line('item_kits_item'); ?> lang->line('item_kits_quantity'); ?>
-
-
- - - - - - - - - - - - - - - - - - - +
+ lang->line('items_item_number').':', 'name', array('class'=>'control-label col-xs-3')); ?> +
+ 'item_number', + 'id'=>'item_number', + 'value'=>$item_info->item_number, + 'class'=>'form-control input-sm', + 'disabled'=>'') + ); ?>
-
- lang->line('items_item_number').':', 'name', array('class'=>'wide')); ?> - - 'item_number', - 'id'=>'item_number', - 'value'=>$item_info->item_number, - 'style' => 'border:none', - 'readonly' => 'readonly' - ); - - echo form_input($inumber); - ?> -
- lang->line('items_name').':', 'name', array('class'=>'wide')); ?> - - 'name', - 'id'=>'name', - 'value'=>$item_info->name, - 'style' => 'border:none', - 'readonly' => 'readonly' - ); - echo form_input($iname); - ?> -
- lang->line('items_category').':', 'category', array('class'=>'wide')); ?> - - 'category', - 'id'=>'category', - 'value'=>$item_info->category, - 'style' => 'border:none', - 'readonly' => 'readonly' - ); - - echo form_input($cat); - ?> -
- lang->line('items_stock_location').':', 'stock_location', array('class'=>'wide')); ?> - - -
- lang->line('items_current_quantity').':', 'quantity', array('class'=>'wide')); ?> - - 'quantity', - 'id'=>'quantity', - 'value'=>current($item_quantities), - 'style' => 'border:none', - 'readonly' => 'readonly' - ); - - echo form_input($qty); - ?> -
+ +
+ lang->line('items_name').':', 'name', array('class'=>'control-label col-xs-3')); ?> +
+ 'name', + 'id'=>'name', + 'value'=>$item_info->name, + 'class'=>'form-control input-sm', + 'disabled'=>'') + ); ?> +
+
+
+ lang->line('items_category').':', 'category', array('class'=>'control-label col-xs-3')); ?> +
+ 'category', + 'id'=>'category', + 'value'=>$item_info->category, + 'class'=>'form-control input-sm', + 'disabled'=>'') + ); ?> +
+
+ +
+ lang->line('items_stock_location').':', 'stock_location', array('class'=>'control-label col-xs-3')); ?> +
+ 'display_stock(this.value);', 'class'=>'form-control')); ?> +
+
+ +
+ lang->line('items_current_quantity').':', 'quantity', array('class'=>'control-label col-xs-3')); ?> +
+ 'quantity', + 'id'=>'quantity', + 'value'=>current($item_quantities), + 'class'=>'form-control input-sm', + 'disabled'=>'') + ); ?> +
+
+ + + + + + + + + + + + + + + Inventory->get_inventory_data_for_item($item_info->item_id)->result_array(); + $employee_name = array(); -Inventory->get_inventory_data_for_item($item_info->item_id)->result_array(); -$employee_name = array(); -foreach( $inventory_array as $row) -{ - $person_id = $row['trans_user']; - $employee = $this->Employee->get_info($person_id); - array_push($employee_name, $employee->first_name." ".$employee->last_name); -} -?> -
Inventory Data Tracking
DateEmployeeIn/Out QtyRemarks
- - + foreach($inventory_array as $row) + { + $employee = $this->Employee->get_info($row['trans_user']); + array_push($employee_name, $employee->first_name . ' ' . $employee->last_name); + } + ?> +
Inventory Data Tracking
DateEmployeeIn/Out QtyRemarks
\ No newline at end of file diff --git a/application/views/items/inventory.php b/application/views/items/inventory.php index 1aafe3c97..eb8b11d75 100644 --- a/application/views/items/inventory.php +++ b/application/views/items/inventory.php @@ -2,7 +2,7 @@ -item_id, array('id'=>'item_form', 'class' => 'form-horizontal')); ?> +item_id, array('id'=>'item_form', 'class'=>'form-horizontal')); ?>
lang->line('items_item_number').':', 'name', array('class'=>'control-label col-xs-3')); ?> diff --git a/application/views/sales/suspended.php b/application/views/sales/suspended.php index d2ec3c8de..926bb4ea6 100644 --- a/application/views/sales/suspended.php +++ b/application/views/sales/suspended.php @@ -1,6 +1,6 @@ - +
lang->line('sales_suspended_sale_id'); ?> lang->line('sales_date'); ?> lang->line('sales_customer'); ?>