diff --git a/application/controllers/Corporate.php b/application/controllers/Corporate.php index a9656c6..8f98ea3 100644 --- a/application/controllers/Corporate.php +++ b/application/controllers/Corporate.php @@ -401,8 +401,10 @@ class Corporate extends CI_Controller { public function gen_tmc_recon(){ $this->checksess(); - $fromdate = $this->input->post('fromdate'); - $todate = $this->input->post('todate'); + $fromdate= $this->input->post('from'); + + $todate = $this->input->post('to'); + // if($gid) // $res = $this->db->query('select *,am_code as supplier_code from gstr2a_data gd left join (select *,group_concat(td_gst_inv) g_td_gst_inv,sum(td_net) td_net_ref from tmc_data where td_show_status = 1 group by td_tkt) td on gd.gd_id=td.td_gstr2a_match_id left join airline_master am on am.am_name=gd.gd_supplier_type where gd_id = "'.$gid.'"'); // else @@ -455,8 +457,8 @@ class Corporate extends CI_Controller { public function gen_gstr2a_recon($gid = null){ $this->checksess(); - $fromdate = $this->input->post('fromdate'); - $todate = $this->input->post('todate'); + $fromdate = $this->input->post('from'); + $todate = $this->input->post('to'); if($gid) $res = $this->db->query('select *,am_code as supplier_code from gstr2a_data where is_active = 1 gd left join (select *,group_concat(td_gst_inv) g_td_gst_inv,sum(td_net) td_net_ref from tmc_data where td_show_status = 1 group by td_tkt) td on gd.gd_id=td.td_gstr2a_match_id left join airline_master am on am.am_name=gd.gd_supplier_type left join airline_invoice ai on gd.gd_id=ai.ti_gdid or gd.gd_inv_no=ai.ti_gst_nub where gd_id = "'.$gid.'" and gd.is_active = 1'); // $res = $this->db->query('select *,am_code as supplier_code from gstr2a_data gd left join (select *,group_concat(td_gst_inv) g_td_gst_inv,sum(td_net) td_net_ref from tmc_data where td_show_status = 1 group by td_tkt) td on gd.gd_id=td.td_gstr2a_match_id left join airline_master am on am.am_name=gd.gd_supplier_type left join airline_invoice ai on gd.gd_id=ai.ti_gdid where gd_id = "'.$gid.'"'); @@ -1256,14 +1258,14 @@ class Corporate extends CI_Controller { $data['curYear'] = date('Y',time()); $this->load->view('corporate/gstr2a',$data); } - public function gstlist() + public function airlineinvoice() { $this->load->database('second', TRUE); $res['data']= $this->db2->get('air_invoice_details')->result(); - $this->load->view('corporate/gstlist',$res); + $this->load->view('corporate/airlineinvoice',$res); } diff --git a/application/views/corporate/airlineinvoice.php b/application/views/corporate/airlineinvoice.php new file mode 100644 index 0000000..71fe200 --- /dev/null +++ b/application/views/corporate/airlineinvoice.php @@ -0,0 +1,384 @@ + + + + + AIRLINE INVOICE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+
+ + +
+ + +
+
+
+

AIRLINE INVOICE

+
+ +
+
+
+
+ + +
+
+
+
+ +
+
+
+ + + +
+ +
+
+ +
+
+
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
S.NO + INVOICE IDPAX NAMEPNRTICKET NOVENDORVENDOR GSTRECIPIENTRECIPIENT GSTINVOICE NUMBERINVOICE DATEHSNTAXABLE VALUECGST VALUECGST RATESGST VALUESGST RATEIGST VALUEIGST RATETOTAL INVOICE VALUETOTAL VALUESTATUSTICKET TYPE AIRLINE FILE NAMEEXTRACTION DATEBATCH ID
sno;?>sl; ?>pax_name; ?>pnr; ?>ticket_no; ?>vendor; ?>vendor_gst; ?>recepient; ?>recepient_gst; ?>invoice_no?>invoice_dt; ?>hsn; ?>taxable_value; ?>cgst_value;?>cgst_rate; ?>sgst_value; ?>sgst_rate; ?>igst_value; ?>igst_rate; ?>total_inv_value; ?>total_values; ?>status; ?>ticket_type; ?>airline_file_name; ?>extraction_date; ?>batch_id; ?>
+ +
+
+
+ + +
+ +
+ + +
+ + + + + + - - - +
@@ -481,15 +484,18 @@ function() { $('#formid').submit(function(e){ e.preventDefault(); - console.log($("#fromdate").val()); + + alert( $("#to").val()); + console.log($("#from").val()); console.log($('#formid').serialize()); $.ajax({ url:'', type:'POST', - data:{ "fromdate" : convert($("#fromdate").val()) , "todate" : convert($("#todate").val()) }, + data:$('#formid').serialize(), success:function(data){ oTable.clear(); var jsonData = JSON.parse(data); + console.log(jsonData); var jd = jsonData.data; var htmlData = ''; var i = 0; @@ -684,7 +690,7 @@ function() { ], "columnDefs": [ { - "targets": [ 0, 1, 2, 8, 12, 13, 14, 15, 16, 21, 23, 24 ], + "targets": [0,1,2,,3,22,23,24,25 ], "visible": false }, { @@ -790,15 +796,15 @@ function() { $('#column_name').change(function(){ - var all_column = ["0", "1", "2", "3", "4", "5", "6"]; + var all_column = ["0", "1", "2", "3", "4", "5", "6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21"]; var remove_column = $('#column_name').val(); var remaining_column = all_column.filter(function(obj) { return remove_column.indexOf(obj) == -1; }); - oTable.columns(remove_column).visible(false); + oTable.columns(remove_column).visible(true); - oTable.columns(remaining_column).visible(true); + oTable.columns(remaining_column).visible(false); }); diff --git a/application/views/corporate/includes/top_nav.php b/application/views/corporate/includes/top_nav.php index b190869..8e02011 100644 --- a/application/views/corporate/includes/top_nav.php +++ b/application/views/corporate/includes/top_nav.php @@ -86,7 +86,7 @@ TMC Dashboard GSTR2A TMC - AIRLINE INVOICE + AIRLINE INVOICE