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 @@
+
+
+