From 60d25ac18786ad212f1be90e6eb1c8662e2e8ba6 Mon Sep 17 00:00:00 2001 From: heama Date: Thu, 20 Jul 2023 11:09:24 +0530 Subject: [PATCH] views heama --- application/controllers/Corporate.php | 14 +- .../views/corporate/airlineinvoice.php | 384 ++++++++ application/views/corporate/gstlist.php | 871 ------------------ application/views/corporate/gstr2a_recon.php | 94 +- .../views/corporate/includes/top_nav.php | 2 +- application/views/corporate/tmc_recon.php | 79 +- .../1689770393___AIRLINE_INVOICE_(14).csv | 16 + 7 files changed, 498 insertions(+), 962 deletions(-) create mode 100644 application/views/corporate/airlineinvoice.php delete mode 100644 application/views/corporate/gstlist.php create mode 100644 uploads/1/airline_invoice/1689770393___AIRLINE_INVOICE_(14).csv diff --git a/application/controllers/Corporate.php b/application/controllers/Corporate.php index 0507fed..c578e2a 100644 --- a/application/controllers/Corporate.php +++ b/application/controllers/Corporate.php @@ -400,8 +400,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 @@ -454,8 +456,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.'"'); @@ -1255,14 +1257,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; ?>
+ +
+
+
+ + +
+ +
+ + +
+ + + + + +