From c4bbe7b80cf945ea511f094ac127046b45d3cd55 Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Thu, 9 Oct 2025 17:13:20 +0530 Subject: [PATCH 1/6] CHANGE_Post_app_having_pre_branch_id - VADIVEL J 2025-10-09 --- app/Controllers/ClientController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php index 57fcb60..9c0edf4 100755 --- a/app/Controllers/ClientController.php +++ b/app/Controllers/ClientController.php @@ -913,7 +913,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); } } @@ -1058,7 +1058,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); } } From 16ce68e79e8d3630745284611382807b3e34fae4 Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Thu, 9 Oct 2025 17:55:32 +0530 Subject: [PATCH 2/6] CHANGE_UI_FIX - VADIVEL J 2025-10-09 --- app/Views/client_onboarding.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Views/client_onboarding.php b/app/Views/client_onboarding.php index d67e88d..f7008b9 100755 --- a/app/Views/client_onboarding.php +++ b/app/Views/client_onboarding.php @@ -126,7 +126,7 @@ body {
- @@ -142,7 +142,7 @@ body {
- @@ -427,6 +427,10 @@ body { }) + + $(function() { + $('.select2').select2(); + }); From 0e770a2f4791ef0d876779852295ec3a7d195813 Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Thu, 9 Oct 2025 20:30:03 +0530 Subject: [PATCH 3/6] CHANGE_UI_FIX - VADIVEL J 2025-10-09 --- app/Views/client_onboarding.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app/Views/client_onboarding.php b/app/Views/client_onboarding.php index f7008b9..536b67a 100755 --- a/app/Views/client_onboarding.php +++ b/app/Views/client_onboarding.php @@ -313,6 +313,12 @@ body { From 58ae91815911eca83349ba9f24b90b1934975db9 Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Fri, 10 Oct 2025 09:47:37 +0530 Subject: [PATCH 4/6] CHANGE_UI_FIX - VADIVEL J 2025-10-10 --- app/Views/client_onboarding.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Views/client_onboarding.php b/app/Views/client_onboarding.php index 536b67a..40cf999 100755 --- a/app/Views/client_onboarding.php +++ b/app/Views/client_onboarding.php @@ -323,6 +323,9 @@ $(document).ready(function() { $('#auto_fetch_branch').html(``); + $('.loader').fadeIn(); + $('.loader-mask').fadeIn(); + $.ajax({ url: "", type: "POST", @@ -347,6 +350,8 @@ $(document).ready(function() { console.error("Error occurred:", status, error); }, complete: function() { + $('.loader').fadeOut(); + $('.loader-mask').delay(350).fadeOut('slow'); console.log("auto_fetch_client call is completed..!!"); } }); From 05c9a3ede748d1ce9af2cf2394e20dbfcc2860a8 Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Fri, 10 Oct 2025 10:55:55 +0530 Subject: [PATCH 5/6] CHANGE_UI_FIX - VADIVEL J 2025-10-10 --- app/Views/client_branch.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Views/client_branch.php b/app/Views/client_branch.php index 18c2301..a6419b7 100755 --- a/app/Views/client_branch.php +++ b/app/Views/client_branch.php @@ -312,6 +312,7 @@ $('#btnBranchAdd').click(function() { $('#district').val(''); $('#branch_city').val(''); $('#branch_form')[0].reset(); + $('#branch_form').parsley().reset(); $('.ac').css('display', 'block'); contactCount = 1 @@ -400,8 +401,13 @@ $("#branch_form").submit(function(event) { $('.loader').fadeIn(); $('.loader-mask').fadeIn(); + if (branch_PrimaryKey == '') { + $('#branch_form input[name="pre_branch_id"]').val(''); + } + 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 +498,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..!!'); } From 1713e729121590c5faac0af602bbd87c5f88e5dd Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Fri, 10 Oct 2025 12:28:46 +0530 Subject: [PATCH 6/6] CHANGE_UI_FIX - VADIVEL J 2025-10-10 --- app/Views/client_branch.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Views/client_branch.php b/app/Views/client_branch.php index a6419b7..882a7f1 100755 --- a/app/Views/client_branch.php +++ b/app/Views/client_branch.php @@ -314,6 +314,7 @@ $('#btnBranchAdd').click(function() { $('#branch_form')[0].reset(); $('#branch_form').parsley().reset(); $('.ac').css('display', 'block'); + $('#post_branch_id').val(''); contactCount = 1 var addButton = document.getElementById('add'); @@ -401,10 +402,6 @@ $("#branch_form").submit(function(event) { $('.loader').fadeIn(); $('.loader-mask').fadeIn(); - if (branch_PrimaryKey == '') { - $('#branch_form input[name="pre_branch_id"]').val(''); - } - var formData = new FormData($('#branch_form')[0]);