susee
This commit is contained in:
parent
57f06c2ca0
commit
71088413f1
@ -56,7 +56,6 @@ class Admin extends CI_Controller {
|
|||||||
$data = $this->input->post();
|
$data = $this->input->post();
|
||||||
|
|
||||||
$data = $data['usr'];
|
$data = $data['usr'];
|
||||||
|
|
||||||
$con['c_code'] = $data['c_code'];
|
$con['c_code'] = $data['c_code'];
|
||||||
$echk = $this->admin->get_corp($con);
|
$echk = $this->admin->get_corp($con);
|
||||||
if($echk->num_rows()>0){
|
if($echk->num_rows()>0){
|
||||||
@ -69,7 +68,7 @@ class Admin extends CI_Controller {
|
|||||||
echo 3; exit;
|
echo 3; exit;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
unset($data['payment']);
|
// unset($data['payment']);
|
||||||
$data['c_createdby'] = $this->session->userdata['recon_sess_i']['u_id'];
|
$data['c_createdby'] = $this->session->userdata['recon_sess_i']['u_id'];
|
||||||
$data['c_createdon'] = date('Y-m-d H:i:s',time());
|
$data['c_createdon'] = date('Y-m-d H:i:s',time());
|
||||||
// echo json_encode($data);
|
// echo json_encode($data);
|
||||||
|
|||||||
@ -24,13 +24,13 @@ class Corporate extends CI_Controller {
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->load->model('Corporate_model','corp');
|
$this->load->model('Corporate_model','corp');
|
||||||
$this->db2 = $this->load->database('second', TRUE);
|
$this->db2 = $this->load->database('second', TRUE);
|
||||||
// $c_id = $this->session->userdata['recon_sess_i']['u_corporateid'];
|
$c_id = $this->session->userdata['recon_sess_i']['u_corporateid'];
|
||||||
// $this->db->select('payment');
|
$this->db->select('payment');
|
||||||
// $this->db->from('corporates');
|
$this->db->from('corporates');
|
||||||
// $this->db->where('c_id', intval($c_id));
|
$this->db->where('c_id', intval($c_id));
|
||||||
// $query = $this->db->get();
|
$query = $this->db->get();
|
||||||
// $cor_id = $this->session->set_flashdata('corporate_id', $query->result()[0]->payment);
|
$cor_id = $this->session->set_flashdata('corporate_id', $query->result()[0]->payment);
|
||||||
//force_ssl();
|
// force_ssl();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function index(){
|
public function index(){
|
||||||
|
|||||||
@ -345,7 +345,7 @@
|
|||||||
data: form.serialize(), // serializes the form's elements.
|
data: form.serialize(), // serializes the form's elements.
|
||||||
success: function(data)
|
success: function(data)
|
||||||
{
|
{
|
||||||
console.log(JSON.parse(data));
|
// console.log(JSON.parse(data));
|
||||||
if(data == 1){
|
if(data == 1){
|
||||||
$('#addclose').trigger('click');
|
$('#addclose').trigger('click');
|
||||||
usrforma.reset();
|
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