diff --git a/application/controllers/Corporate.php b/application/controllers/Corporate.php index 8f98ea3..6eda99e 100644 --- a/application/controllers/Corporate.php +++ b/application/controllers/Corporate.php @@ -5107,4 +5107,22 @@ public function upload_tmc(){ echo json_encode($data); } -} \ No newline at end of file + + public function tmc_gst_inv(){ + $this->checksess(); + $this->load->database('second', TRUE); + // $res = $this->db->query('SELECT invoice_no as inv_invoice_no , pnr as inv_pnr , ticket_no as inv_tkt_no FROM gst1.air_invoice_details AS t1 JOIN reconciler_test.gstr2a_data AS t2 ON t1.invoice_no = t2.gd_inv_no;'); + + $this->db->select('tmc_data.td_tkt as tmc_tkt , gstr2a_data.gd_inv_no as gstr2a_inv , invoice_no as inv_invoice_no , pnr as inv_pnr , ticket_no as inv_tkt_no , total_values'); + $this->db->from('gst1.air_invoice_details'); + $this->db->join('reconciler_test.gstr2a_data', 'air_invoice_details.invoice_no = gstr2a_data.gd_inv_no'); + $this->db->join('reconciler_test.tmc_data', 'tmc_data.td_tkt = gstr2a_data.gd_tkt_no'); + $query = $this->db->get(); + $result['data'] = $query->result(); + + $this->load->view('corporate/tmc_gst_inv',$result); + } + +} + + diff --git a/application/views/corporate/gstr2a_recon.php b/application/views/corporate/gstr2a_recon.php index c9c6298..a63eed4 100644 --- a/application/views/corporate/gstr2a_recon.php +++ b/application/views/corporate/gstr2a_recon.php @@ -186,7 +186,7 @@ INVOICE FILE ACTION REFID - REFID + SEARCH MANUAL TKT NO TICKET NO INVOICE @@ -526,9 +526,10 @@ function() { async: false, success: function(data){ var pdata = JSON.parse(data); - var d = pdata; - d.counter++; - oTable.row(tr).data(d); + // var d = pdata; + // d.counter++; + // oTable.row(tr).data(d); + $(".btn-primary").click(); }, error:function(){ alert('Request failed. Kindly try after sometime'); @@ -616,7 +617,7 @@ function() { { extend: "csvHtml5", exportOptions: { - columns: [ 0, 1, 2, 3, 4, 23, 24, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] + columns: [ 0, 1, 2, 3, 4, 23, 24, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,22] } } @@ -683,7 +684,7 @@ function() { ], "columnDefs": [ { - "targets": [0,1,2,,3,22 ], + "targets": [0,1,2,,3 ], "visible": false }, { diff --git a/application/views/corporate/includes/top_nav.php b/application/views/corporate/includes/top_nav.php index 8e02011..e577bbf 100644 --- a/application/views/corporate/includes/top_nav.php +++ b/application/views/corporate/includes/top_nav.php @@ -87,6 +87,7 @@ GSTR2A TMC AIRLINE INVOICE + TEST