susee
This commit is contained in:
parent
57f06c2ca0
commit
71088413f1
@ -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);
|
||||
|
||||
@ -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(){
|
||||
|
||||
@ -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();
|
||||
|
||||
BIN
uploads/1/gstr2a/GSTR2A-12DWWPD9503H135-Jan-2023-1690976486.xlsx
Normal file
BIN
uploads/1/gstr2a/GSTR2A-12DWWPD9503H135-Jan-2023-1690976486.xlsx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user