diff --git a/app/Controllers/StaffController.php b/app/Controllers/StaffController.php index a6e31ba..7e836b6 100644 --- a/app/Controllers/StaffController.php +++ b/app/Controllers/StaffController.php @@ -261,7 +261,7 @@ class StaffController extends BaseController { $clientData = $this->request->getVar(); $clientData['created_by'] = $this->session->get('is_staff_logged_in'); - // $clientData['business_id'] = $this->session->get('logged_in_staff_business_id'); + $clientData['business_id'] = $this->session->get('logged_in_staff_business_id'); // $business= $this->BranchModel->select('*') // ->join('business' , 'branches.business_id = business.business_id', 'left') // ->where('branches.branch_id ',$clientData['branch_id']) @@ -295,6 +295,7 @@ class StaffController extends BaseController return ; } } + }else{ diff --git a/app/Views/client_list.php b/app/Views/client_list.php index e8c0383..ff70121 100644 --- a/app/Views/client_list.php +++ b/app/Views/client_list.php @@ -392,6 +392,8 @@ $('#bike_model_login-modal').modal('hide'); window.location.reload(); }else{ + $('#client_submit_button').attr('disabled','false'); + toastr.waring('GST Number Already Exists'); // redirect()->to(base_url()."client_list") } },