diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php index 2643143..7d412c5 100755 --- a/app/Controllers/ClientController.php +++ b/app/Controllers/ClientController.php @@ -923,7 +923,7 @@ class ClientController extends AdminController return $this->respond([ 'status' => false, 'code' => 409, - 'message' => 'The pre branch id '.$data['post_branch_id'].' is already mapped with another branch. Please check.', + 'message' => 'The branch is already mapped with another branch. Please check.', ], 409); } } @@ -1068,7 +1068,7 @@ class ClientController extends AdminController return $this->respond([ 'status' => false, 'code' => 409, - 'message' => 'The pre branch id '.$data['pre_branch_id'].' is already mapped with another branch. Please check.', + 'message' => 'The branch is already mapped with another branch. Please check.', ], 409); } } diff --git a/app/Views/client_branch.php b/app/Views/client_branch.php index f55b2dc..fe817b3 100755 --- a/app/Views/client_branch.php +++ b/app/Views/client_branch.php @@ -312,7 +312,9 @@ $('#btnBranchAdd').click(function() { $('#district').val(''); $('#branch_city').val(''); $('#branch_form')[0].reset(); + $('#branch_form').parsley().reset(); $('.ac').css('display', 'block'); + $('#post_branch_id').val(''); contactCount = 1 var addButton = document.getElementById('add'); @@ -402,6 +404,7 @@ $("#branch_form").submit(function(event) { var formData = new FormData($('#branch_form')[0]); + const jsonString = JSON.stringify(selectedValues); const level_contect_data_json_string = JSON.stringify(level_contect_data); console.log('jsonString', jsonString); @@ -492,7 +495,7 @@ $("#branch_form").submit(function(event) { $('.loader').fadeOut(); $('.loader-mask').delay(350).fadeOut('slow'); console.log('Something Wrong!', 'warning'); - if(xhr.status == 409){ + if(xhr.status === 409){ alert('The Current Branch is Already Existing..!!'); } diff --git a/app/Views/client_onboarding.php b/app/Views/client_onboarding.php index d67e88d..40cf999 100755 --- a/app/Views/client_onboarding.php +++ b/app/Views/client_onboarding.php @@ -126,7 +126,7 @@ body {
- @@ -142,7 +142,7 @@ body {
- @@ -313,10 +313,19 @@ body {