From 55051578c6845b8d7f4887ee8a802cea20080a0f Mon Sep 17 00:00:00 2001 From: jibigopi Date: Thu, 15 May 2014 23:46:04 +0530 Subject: [PATCH] stock transfer details --- .../modules/stock_transfer/config/posnic.php | 4 + .../controllers/stock_transfer.php | 334 ++++ .../language/english/english_lang.php | 10 + .../language/english/index.html | 10 + .../language/malayalam/index.html | 10 + .../language/malayalam/malayalam_lang.php | 77 + .../modules/stock_transfer/models/stock.php | 144 ++ .../stock_transfer/views/header/header.php | 303 ++++ .../modules/stock_transfer/views/index.php | 1361 +++++++++++++++++ 9 files changed, 2253 insertions(+) create mode 100644 application/modules/stock_transfer/config/posnic.php create mode 100644 application/modules/stock_transfer/controllers/stock_transfer.php create mode 100644 application/modules/stock_transfer/language/english/english_lang.php create mode 100644 application/modules/stock_transfer/language/english/index.html create mode 100644 application/modules/stock_transfer/language/malayalam/index.html create mode 100644 application/modules/stock_transfer/language/malayalam/malayalam_lang.php create mode 100644 application/modules/stock_transfer/models/stock.php create mode 100644 application/modules/stock_transfer/views/header/header.php create mode 100644 application/modules/stock_transfer/views/index.php diff --git a/application/modules/stock_transfer/config/posnic.php b/application/modules/stock_transfer/config/posnic.php new file mode 100644 index 0000000..5ba8e7f --- /dev/null +++ b/application/modules/stock_transfer/config/posnic.php @@ -0,0 +1,4 @@ + diff --git a/application/modules/stock_transfer/controllers/stock_transfer.php b/application/modules/stock_transfer/controllers/stock_transfer.php new file mode 100644 index 0000000..53a831a --- /dev/null +++ b/application/modules/stock_transfer/controllers/stock_transfer.php @@ -0,0 +1,334 @@ +load->library('posnic'); + } + function index(){ + $this->load->view('template/app/header'); + $this->load->view('header/header'); + $this->load->view('template/branch',$this->posnic->branches()); + $data['active']='stock_transfer'; + $this->load->view('index',$data); + $this->load->view('template/app/navigation',$this->posnic->modules()); + $this->load->view('template/app/footer'); + } + // purchase order data table + function data_table(){ + $aColumns = array( 'guid','code','code','date','no_items','total_amount','active_status','stock_status' ); + $start = ""; + $end=""; + + if ( $this->input->get_post('iDisplayLength') != '-1' ) { + $start = $this->input->get_post('iDisplayStart'); + $end= $this->input->get_post('iDisplayLength'); + } + $order=""; + if ( isset( $_GET['iSortCol_0'] ) ) + { + for ( $i=0 ; $iinput->get_post('iSortingCols') ) ; $i++ ) + { + if ( $_GET[ 'bSortable_'.intval($this->input->get_post('iSortCol_'.$i)) ] == "true" ) + { + $order.= $aColumns[ intval( $this->input->get_post('iSortCol_'.$i) ) ]." ".$this->input->get_post('sSortDir_'.$i ) .","; + } + } + + $order = substr_replace( $order, "", -1 ); + + } + + $like = array(); + + if ( $_GET['sSearch'] != "" ) + { + $like =array( + 'po_no'=> $this->input->get_post('sSearch'), + ); + + } + + $this->load->model('stock') ; + + $rResult1 = $this->stock->get($end,$start,$like,$this->session->userdata['branch_id']); + + $iFilteredTotal =$this->stock->count($this->session->userdata['branch_id']); + + $iTotal =$iFilteredTotal; + + $output1 = array( + "sEcho" => intval($_GET['sEcho']), + "iTotalRecords" => $iTotal, + "iTotalDisplayRecords" => $iFilteredTotal, + "aaData" => array() + ); + foreach ($rResult1 as $aRow ) + { + $row = array(); + for ( $i=0 ; $isession->userdata['supplier_guid']=$suid; + } + + + + + +function save(){ + if($this->session->userdata['stock_transfer_per']['add']==1){ + + $this->form_validation->set_rules('order_number', $this->lang->line('order_number'), 'required'); + $this->form_validation->set_rules('order_date', $this->lang->line('order_date'), 'required'); + $this->form_validation->set_rules('total_amount', $this->lang->line('total_amount'), 'numeric'); + $this->form_validation->set_rules('branch', $this->lang->line('branch'), 'numeric'); + + $this->form_validation->set_rules('new_item_id[]', $this->lang->line('new_item_id'), 'required'); + $this->form_validation->set_rules('new_item_quty[]', $this->lang->line('new_item_quty'), 'required|numeric'); + + $this->form_validation->set_rules('new_item_supplier[]', $this->lang->line('new_item_supplier'), 'required'); + $this->form_validation->set_rules('new_item_cost[]', $this->lang->line('new_item_cost'), 'required|numeric'); + $this->form_validation->set_rules('new_item_price[]', $this->lang->line('new_item_price'), 'required|numeric'); + + $this->form_validation->set_rules('new_item_total[]', $this->lang->line('new_item_total'), 'numeric'); + $this->form_validation->set_rules('new_item_tax[]', $this->lang->line('new_item_tax'), 'required|numeric'); + $this->form_validation->set_rules('new_item_stock[]', $this->lang->line('new_item_stock'), 'required'); + + if ( $this->form_validation->run() !== false ) { + $pono= $this->input->post('order_number'); + $podate= strtotime($this->input->post('order_date')); + $total_items=$this->input->post('index'); + $remark= $this->input->post('remark'); + $note= $this->input->post('note'); + $total_amount= $this->input->post('total_amount'); + + + $value=array('destination'=>$this->input->post('branch'),'code'=>$pono,'date'=>$podate,'note'=>$note,'remark'=>$remark,'no_items'=>$total_items,'total_amount'=>$total_amount); + $guid= $this->posnic->posnic_add_record($value,'stock_transfer'); + + $item= $this->input->post('new_item_id'); + $quty= $this->input->post('new_item_quty'); + $cost= $this->input->post('new_item_cost'); + $supplier= $this->input->post('new_item_supplier'); + $sell= $this->input->post('new_item_price'); + $net= $this->input->post('new_item_total'); + $tax= $this->input->post('new_item_tax'); + $stock= $this->input->post('new_item_stock'); + + for($i=0;$iload->model('stock'); + + $this->stock->add_stock_transfer($guid,$item[$i],$quty[$i],$cost[$i],$sell[$i],$tax[$i],$net[$i],$supplier[$i],$stock[$i]); + + + } + $this->posnic->posnic_master_increment_max('stock_transfer') ; + echo 'TRUE'; + + }else{ + echo 'FALSE'; + } + }else{ + echo 'Noop'; + } + + } + function update(){ + if(isset($_POST['stock_transfer_guid'])){ + if($this->session->userdata['stock_transfer_per']['edit']==1){ + + $this->form_validation->set_rules('order_date', $this->lang->line('order_date'), 'required'); + $this->form_validation->set_rules('total_amount', $this->lang->line('total_amount'), 'numeric'); + + + + + $this->form_validation->set_rules('new_item_id[]', $this->lang->line('new_item_id')); + + $this->form_validation->set_rules('new_item_quty[]', $this->lang->line('new_item_quty'), 'numeric'); + $this->form_validation->set_rules('new_item_cost[]', $this->lang->line('new_item_cost'), 'numeric'); + $this->form_validation->set_rules('new_item_price[]', $this->lang->line('new_item_price'), 'numeric'); + $this->form_validation->set_rules('new_item_supplier[]', $this->lang->line('new_item_supplier')); + $this->form_validation->set_rules('new_item_stock[]', $this->lang->line('new_item_stock')); + $this->form_validation->set_rules('new_item_total[]', $this->lang->line('new_item_total'), 'numeric'); + $this->form_validation->set_rules('new_item_tax[]', $this->lang->line('new_item_tax'), 'numeric'); + + + $this->form_validation->set_rules('items_quty[]', $this->lang->line('items_quty'), 'numeric'); + $this->form_validation->set_rules('items_cost[]', $this->lang->line('items_cost'), 'numeric'); + $this->form_validation->set_rules('items_price[]', $this->lang->line('items_price'), 'numeric'); + $this->form_validation->set_rules('items_stock[]', $this->lang->line('items_stock')); + $this->form_validation->set_rules('items_supplier[]', $this->lang->line('items_supplier')); + $this->form_validation->set_rules('items_total[]', $this->lang->line('items_total'), 'numeric'); + $this->form_validation->set_rules('items_tax[]', $this->lang->line('items_tax'), 'numeric'); + + if ( $this->form_validation->run() !== false ) { + $guid= $this->input->post('stock_transfer_guid'); + $podate= strtotime($this->input->post('order_date')); + $total_items=$this->input->post('index'); + $remark= $this->input->post('remark'); + $note= $this->input->post('note'); + $total_amount= $this->input->post('total_amount'); + $total_amount= $this->input->post('total_amount'); + + + $value=array('destination'=>$this->input->post('branch'),'date'=>$podate,'note'=>$note,'remark'=>$remark,'no_items'=>$total_items,'total_amount'=>$total_amount); + $guid= $this->input->post('stock_transfer_guid'); + $update_where=array('guid'=>$guid); + $this->posnic->posnic_update_record($value,$update_where,'stock_transfer'); + + $item= $this->input->post('items_id'); + $quty= $this->input->post('items_quty'); + $cost= $this->input->post('items_cost'); + $sell= $this->input->post('items_price'); + $net= $this->input->post('items_total'); + $stock= $this->input->post('items_stock'); + $tax= $this->input->post('items_tax'); + $supplier= $this->input->post('items_supplier'); + for($i=0;$i$guid,'item'=>$item[$i]); + $this->load->model('stock'); + $this->stock->update_stock_transfer($guid,$item[$i],$quty[$i],$cost[$i],$sell[$i],$tax[$i],$net[$i],$supplier[$i],$stock[$i]); + + } + $delete= $this->input->post('r_items'); + for($j=0;$jstock->delete_order_item($delete[$j]); + } + + $new_item= $this->input->post('new_item_id'); + $new_quty= $this->input->post('new_item_quty'); + $new_cost= $this->input->post('new_item_cost'); + $new_sell= $this->input->post('new_item_price'); + $new_mrp= $this->input->post('new_item_mrp'); + $new_net= $this->input->post('new_item_total'); + $new_stock= $this->input->post('new_item_stock'); + $new_tax= $this->input->post('new_item_tax'); + $new_supplier= $this->input->post('new_item_supplier'); + for($i=0;$istock->add_stock_transfer($guid,$new_item[$i],$new_quty[$i],$new_cost[$i],$new_sell[$i],$new_tax[$i],$new_net[$i],$new_supplier[$i],$new_stock[$i]); + } + + } + echo 'TRUE'; + + }else{ + echo 'FALSE'; + } + }else{ + echo 'Noop'; + } + } + + + } + +/* + * get supplier details for stock transfer + * */ +// functoon starts +function search_supplier(){ + $search= $this->input->post('term'); + $like=array('first_name'=>$search,'last_name'=>$search,'company_name'=>$search,'phone'=>$search,'email'=>$search); + $data= $this->posnic->posnic_select2('suppliers',$like) ; + echo json_encode($data); +} +// function end +/* + * get branch details forstock transfer + * */ +// functoon starts +function search_branch(){ + $search= $this->input->post('term'); + $this->load->model('stock'); + $data= $this->stock->search_branch($search) ; + echo json_encode($data); +} +// function end + +/* +Delete purchase order if the user have permission */ +// function start +function delete(){ + if($this->session->userdata['brands_per']['delete']==1){ // check permission of current user for delete purchase order + if($this->input->post('guid')){ + $this->load->model('stock'); + $guid=$this->input->post('guid'); + $status=$this->stock->check_approve($guid);// check if the purchase order was already apparoved or what + if($status!=FALSE){ + $this->posnic->posnic_delete($guid,'stock_transfer'); // delete the purchase order + echo 'TRUE'; + }else{ + echo 'Approved'; + } + + } + }else{ + echo 'FALSE'; + } + +} +// function end + +function get_stock_transfer($guid){ + if($this->session->userdata['stock_transfer_per']['edit']==1){ + $this->load->model('stock'); + $data= $this->stock->get_stock_transfer($guid); + echo json_encode($data); + } +} + +function stock_transfer_approve(){ + if($this->session->userdata['stock_transfer_per']['approve']==1){ + $id= $this->input->post('guid'); + $this->load->model('stock'); + $this->stock->stock_transfer_approve($id); + echo 'TRUE'; + }else{ + echo 'FALSE'; + } + } +function order_number(){ + $data[]= $this->posnic->posnic_master_max('stock_transfer') ; + echo json_encode($data); +} +/* + * search items to purchase order with or like + * */ + +function search_items(){ + $search= $this->input->post('term'); + $this->load->model('stock'); + $data= $this->stock->search_items($search); + echo json_encode($data); + + +} +} +?> diff --git a/application/modules/stock_transfer/language/english/english_lang.php b/application/modules/stock_transfer/language/english/english_lang.php new file mode 100644 index 0000000..4f63fa8 --- /dev/null +++ b/application/modules/stock_transfer/language/english/english_lang.php @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/application/modules/stock_transfer/language/english/index.html b/application/modules/stock_transfer/language/english/index.html new file mode 100644 index 0000000..c942a79 --- /dev/null +++ b/application/modules/stock_transfer/language/english/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/modules/stock_transfer/language/malayalam/index.html b/application/modules/stock_transfer/language/malayalam/index.html new file mode 100644 index 0000000..c942a79 --- /dev/null +++ b/application/modules/stock_transfer/language/malayalam/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/modules/stock_transfer/language/malayalam/malayalam_lang.php b/application/modules/stock_transfer/language/malayalam/malayalam_lang.php new file mode 100644 index 0000000..d292ca6 --- /dev/null +++ b/application/modules/stock_transfer/language/malayalam/malayalam_lang.php @@ -0,0 +1,77 @@ + diff --git a/application/modules/stock_transfer/models/stock.php b/application/modules/stock_transfer/models/stock.php new file mode 100644 index 0000000..7ca1410 --- /dev/null +++ b/application/modules/stock_transfer/models/stock.php @@ -0,0 +1,144 @@ +db->select()->from('damage_stock')->where('branch_id',$branch)->where('delete_status',0); + $this->db->limit($end,$start); + $this->db->or_like($like); + $query=$this->db->get(); + $data=array(); + foreach ($query->result_array() as $row){ + $row['date']=date('d-m-Y',$row['date']); + $data[]=$row; + } + return $data; + } + + function count($branch){ + $this->db->select()->from('damage_stock')->where('branch_id',$branch)->where('delete_status',0); + $sql= $this->db->get(); + return $sql->num_rows(); + } + + function update_damage_stock($guid,$item,$quty,$cost,$sell,$tax,$net,$supplier,$stock){ + $this->db->where(array('damage_stock_id'=>$guid,'item'=>$item)); + $item_value=array('stocks_history_id'=>$stock,'tax'=>$tax,'quty'=>$quty,'supplier_id'=>$supplier,'cost'=>$cost,'sell'=>$sell,'amount'=>$net); + $this->db->update('damage_stock_x_items',$item_value); + + } + function add_damage_stock($guid,$item,$quty,$cost,$sell,$tax,$net,$supplier,$stock){ + + + $item_value=array('stocks_history_id'=>$stock,'damage_stock_id'=>$guid,'tax'=>$tax,'item'=>$item,'quty'=>$quty,'supplier_id'=>$supplier,'cost'=>$cost,'sell'=>$sell,'amount'=>$net); + $this->db->insert('damage_stock_x_items',$item_value); + $os_item= $this->db->insert_id(); + $this->db->where('id',$os_item); + $this->db->update('damage_stock_x_items',array('guid'=>md5('damage_stock_x_items'.$item.$os_item))); + } + + function search_items($search){ + $bid=$this->session->userdata['branch_id']; + + $this->db->select('stocks_history.guid as stock_id,suppliers.first_name,suppliers.guid as s_guid,items_setting.purchase,items.tax_Inclusive ,tax_types.type as tax_type_name,taxes.value as tax_value,taxes.type as tax_type,brands.name as b_name,items_department.department_name as d_name,items_category.category_name as c_name,items.name,items.guid as i_guid,items.code,items.image,items.tax_Inclusive,items.tax_id,stocks_history.price as price,stocks_history.cost as cost,stock.quty as quty')->from('stock')->where('stock.branch_id',$bid)->where('stock.quty >',0); + //$this->db->distinct('stocks_history.cost'); + $this->db->join('stocks_history', 'stocks_history.stock_id=stock.guid','left'); + $this->db->join('suppliers', 'suppliers.guid=stocks_history.supplier_id','left'); + $this->db->join('items', 'items.guid=stocks_history.item_id','left'); + $this->db->join('items_category', 'items.category_id=items_category.guid','left'); + $this->db->join('brands', 'items.brand_id=brands.guid','left'); + $this->db->join('items_setting', 'items.guid=items_setting.item_id AND items_setting.purchase=1','left'); + $this->db->join('items_department', 'items.depart_id=items_department.guid','left'); + $this->db->join('taxes', "items.tax_id=taxes.guid ",'left'); + $this->db->join('tax_types', "taxes.type=tax_types.guid AND items.tax_id=taxes.guid ",'left'); + $like=array('items.guid'=>1,'items.code'=>$search,'items.barcode'=>$search,'items_category.category_name'=>$search,'brands.name'=>$search,'items_department.department_name'=>$search,'items.name'=>$search); + $this->db->limit($this->session->userdata['data_limit']); + $this->db->or_like($like); + $this->db->group_by('stocks_history.cost'); + $sql=$this->db->get(); + $data=array(); + foreach ($sql->result() as $row){ + if($row->quty >0){ + $data[]=$row; + } + } + // $this->db->like('suppliers_x_items.supplier_id',$guid); + + return $data; + + } + function get_damage_stock($guid){ + $this->db->select('items.tax_Inclusive ,tax_types.type as tax_type_name,taxes.value as tax_value,taxes.type as tax_type,stock.quty as item_limit,suppliers.guid as s_guid,suppliers.first_name as s_name,suppliers.company_name as c_name,suppliers.address1 as address,damage_stock.*,damage_stock_x_items.tax as order_tax,damage_stock_x_items.item ,damage_stock_x_items.quty ,damage_stock_x_items.cost ,damage_stock_x_items.sell ,damage_stock_x_items.guid as o_i_guid ,damage_stock_x_items.amount ,damage_stock_x_items.stocks_history_id as stock_id,,items.guid as i_guid,items.name as items_name,items.code as i_code')->from('damage_stock')->where('damage_stock.guid',$guid); + $this->db->join('damage_stock_x_items', "damage_stock_x_items.damage_stock_id = damage_stock.guid ",'left'); + $this->db->join('stocks_history', 'damage_stock_x_items.stocks_history_id=stocks_history.guid','left'); + $this->db->join('stock', 'stocks_history.stock_id=stock.guid','left'); + $this->db->join('items', "items.guid=damage_stock_x_items.item AND damage_stock_x_items.damage_stock_id='".$guid."' ",'left'); + $this->db->join('taxes', "items.tax_id=taxes.guid AND items.guid=damage_stock_x_items.item ",'left'); + $this->db->join('tax_types', "taxes.type=tax_types.guid AND items.tax_id=taxes.guid AND items.guid=damage_stock_x_items.item ",'left'); + $this->db->join('suppliers', "suppliers.guid=damage_stock_x_items.supplier_id AND damage_stock_x_items.damage_stock_id='".$guid."'",'left'); + $this->db->join('suppliers_x_items', "suppliers_x_items.supplier_id=damage_stock_x_items.supplier_id AND suppliers_x_items.item_id=damage_stock_x_items.item AND damage_stock_x_items.damage_stock_id='".$guid."' ",'left'); + $sql= $this->db->get(); + $data=array(); + foreach($sql->result_array() as $row){ + + $row['date']=date('d-m-Y',$row['date']); + + $data[]=$row; + } + return $data; + } + function delete_order_item($guid){ + $this->db->where('guid',$guid); + $this->db->delete('damage_stock_x_items'); + } + function damage_stock_approve($guid){ + $this->db->select()->from('damage_stock_x_items')->where('damage_stock_id',$guid); + $sql= $this->db->get(); + foreach ($sql->result() as $row){ + $price=$row->sell; + $quty=$row->quty; + $item=$row->item; + $this->db->select('quty,guid')->from('stock')->where('branch_id',$this->session->userdata('branch_id'))->where('item',$item)->where('price',$price); + $sql_order= $this->db->get(); + + $stock_quty; + $stock_id; + foreach ($sql_order->result() as $stock){ + $stock_quty= $stock->quty; + $stock_id=$stock->guid; + } + + $this->db->where('guid',$stock_id); + $this->db->update('stock',array('quty'=>$stock_quty-$quty)); + + + } + + $this->db->where('guid',$guid); + $this->db->update('damage_stock',array('stock_status'=>1)); + + + } + function check_approve($guid){ + $this->db->select()->from('damage_stock')->where('guid',$guid)->where('stock_status',1); + $sql= $this->db->get(); + if($sql->num_rows()>0){ + return FALSE; + }else{ + return TRUE; + } + + } + function search_branch($search){ + $like=array('store_name'=>$search,'code'=>$search,'phone'=>$search,'email'=>$search,'city'=>$search,'state'=>$search,'country'=>$search,'website'=>$search); + $this->db->select()->from('branches')->where('active_status',1)->where('delete_status',0); + $this->db->or_like($like); + $this->db->limit($this->session->userdata('data_limit')); + $sql= $this->db->get(); + return $sql->result(); + } + +} +?> diff --git a/application/modules/stock_transfer/views/header/header.php b/application/modules/stock_transfer/views/header/header.php new file mode 100644 index 0000000..b420056 --- /dev/null +++ b/application/modules/stock_transfer/views/header/header.php @@ -0,0 +1,303 @@ + + + + + + + + + \ No newline at end of file diff --git a/application/modules/stock_transfer/views/index.php b/application/modules/stock_transfer/views/index.php new file mode 100644 index 0000000..b10265d --- /dev/null +++ b/application/modules/stock_transfer/views/index.php @@ -0,0 +1,1361 @@ + + + + + +
+
+
+ 'posnic'); + echo form_open('stock_transfer/stock_transfer_manage',$form) ?> +
+

+
+
+

lang->line('stock_transfer') ?>

+
+ + + + + + + + + + + + + + + + +
Idlang->line('select') ?>lang->line('stock_transfer_id') ?>lang->line('date') ?>lang->line('number_of_items') ?>lang->line('total_amount') ?>lang->line('status') ?>lang->line('action') ?>
+
+
+
+ +
+
+
+ + + + + + + + + + + + +
+ 'parsley_reg', + 'runat'=>'server', + 'name'=>'items_form', + 'class'=>'form-horizontal'); + echo form_open_multipart('stock_transfer/upadate_pos_stock_transfer_details/',$form);?> + +
+ + + + + + +
+
+
+

lang->line('stock_transfer')." ".$this->lang->line('details') ?>

+
+ + +
+
+
+
+ + 'select_branch', + 'class'=>'required form-control', + 'id'=>'select_branch', + + 'value'=>set_value('branch')); + echo form_input($branch)?> + +
+
+
+
+ + 'branch_name', + 'class'=>'required form-control', + 'id'=>'branch_name', + 'disabled'=>'disabled', + 'value'=>set_value('branch_name')); + echo form_input($branch_name)?> +
+
+
+
+ + 'demo_order_number', + 'class'=>'required form-control', + 'id'=>'demo_order_number', + 'disabled'=>'disabled', + 'value'=>set_value('order_number')); + echo form_input($order_number)?> + +
+
+ +
+
+ +
+ 'order_date', + 'class'=>'required form-control', + 'id'=>'order_date', + 'onKeyPress'=>"new_order_date(event)", + 'value'=>set_value('order_date')); + echo form_input($order_date)?> + +
+
+
+ +
+
+ + 'demo_total_amount', + 'class'=>'required form-control', + 'id'=>'demo_total_amount', + 'disabled'=>'disabled', + 'value'=>set_value('total_amount')); + echo form_input($total_amount)?> + + +
+
+ + +
+ +
+
+ +
+
+ +
+
+ + + + + +
+ + +
+ + + +
+ + 'items', + 'class'=>'form-control', + 'id'=>'items', + 'value'=>set_value('items')); + echo form_input($items)?> +
+ + + + + + + + + + +
+ +
+
+ + + + 'quantity', + 'class'=>' form-control text-center', + 'id'=>'quantity', + 'onkeyup'=>"net_amount()", + 'onKeyPress'=>"add_new_quty(event); return numbersonly(event)", + 'value'=>set_value('quantity')); + echo form_input($quantity)?> + +
+
+ + + +
+
+ + + + 'cost', + 'class'=>' form-control small_length text-right', + 'id'=>'cost', + 'disabled'=>'disabled', + 'value'=>set_value('cost')); + echo form_input($cost)?> +
+
+ +
+
+ + + + 'price', + 'class'=>' form-control small_length text-right', + 'id'=>'price', + 'disabled'=>'disabled', + 'value'=>set_value('price')); + echo form_input($price)?> +
+
+ + + + + + + +
+
+ + + + 'tax', + 'class'=>' form-control text-right', + 'id'=>'tax', + 'disabled'=>'disabled', + 'value'=>set_value('tax')); + echo form_input($tax)?> +
+
+ +
+
+ + 'first_name', + 'class'=>'form-control', + 'id'=>'first_name', + 'disabled'=>'disabled', + 'value'=>set_value('first_name')); + echo form_input($first_name)?> + +
+
+ +
+
+ + + + 'total', + 'class'=>' form-control text-right', + 'id'=>'total', + 'disabled'=>'disabled', + 'value'=>set_value('total')); + echo form_input($total)?> +
+
+
+ + + +
+ + +
+ + + + +
+ +
+ + +
+ +
+
+
+

lang->line('order_items') ?>

+
+ + + + + + + + + + + + + + + + + + + + + +
lang->line('no') ?>lang->line('name') ?>lang->line('sku') ?>lang->line('quantity') ?>lang->line('cost') ?>lang->line('price') ?>lang->line('tax') ?>lang->line('supplier') ?>lang->line('total') ?>lang->line('action') ?>
+
+ +
+
+
+
+
+ + + +
+
+
+

lang->line('note')." ".$this->lang->line('and')." ".$this->lang->line('remark') ?>

+
+
+
+ + 'note', + 'class'=>' form-control', + 'id'=>'note', + 'rows'=>3, + 'value'=>set_value('note')); + echo form_textarea($note)?> + +
+
+
+
+ + 'remark', + 'class'=>' form-control', + 'id'=>'remark', + 'rows'=>3, + 'value'=>set_value('remark')); + echo form_textarea($remark)?> + +
+
+ + + + +
+
+
+
+
+ +
+ + +
+
+ +
+
+ +
+
+
+ +
+ +
+ + + + + + + \ No newline at end of file