diff --git a/application/controllers/Admin.php b/application/controllers/Admin.php index 9d73cd1..da95af6 100644 --- a/application/controllers/Admin.php +++ b/application/controllers/Admin.php @@ -56,7 +56,6 @@ class Admin extends CI_Controller { $data = $this->input->post(); $data = $data['usr']; - $con['c_code'] = $data['c_code']; $echk = $this->admin->get_corp($con); if($echk->num_rows()>0){ @@ -69,7 +68,7 @@ class Admin extends CI_Controller { echo 3; exit; } else{ - unset($data['payment']); + // unset($data['payment']); $data['c_createdby'] = $this->session->userdata['recon_sess_i']['u_id']; $data['c_createdon'] = date('Y-m-d H:i:s',time()); // echo json_encode($data); diff --git a/application/controllers/Corporate.php b/application/controllers/Corporate.php index a0c5d01..bff6518 100644 --- a/application/controllers/Corporate.php +++ b/application/controllers/Corporate.php @@ -24,13 +24,13 @@ class Corporate extends CI_Controller { parent::__construct(); $this->load->model('Corporate_model','corp'); $this->db2 = $this->load->database('second', TRUE); - // $c_id = $this->session->userdata['recon_sess_i']['u_corporateid']; - // $this->db->select('payment'); - // $this->db->from('corporates'); - // $this->db->where('c_id', intval($c_id)); - // $query = $this->db->get(); - // $cor_id = $this->session->set_flashdata('corporate_id', $query->result()[0]->payment); - //force_ssl(); + $c_id = $this->session->userdata['recon_sess_i']['u_corporateid']; + $this->db->select('payment'); + $this->db->from('corporates'); + $this->db->where('c_id', intval($c_id)); + $query = $this->db->get(); + $cor_id = $this->session->set_flashdata('corporate_id', $query->result()[0]->payment); + // force_ssl(); } public function index(){ diff --git a/application/views/admin/corporates.php b/application/views/admin/corporates.php index 0a609af..96c42a0 100644 --- a/application/views/admin/corporates.php +++ b/application/views/admin/corporates.php @@ -345,7 +345,7 @@ data: form.serialize(), // serializes the form's elements. success: function(data) { - console.log(JSON.parse(data)); + // console.log(JSON.parse(data)); if(data == 1){ $('#addclose').trigger('click'); usrforma.reset(); diff --git a/uploads/1/gstr2a/GSTR2A-12DWWPD9503H135-Jan-2023-1690976486.xlsx b/uploads/1/gstr2a/GSTR2A-12DWWPD9503H135-Jan-2023-1690976486.xlsx new file mode 100644 index 0000000..8695859 Binary files /dev/null and b/uploads/1/gstr2a/GSTR2A-12DWWPD9503H135-Jan-2023-1690976486.xlsx differ