From 4a02c5c630e60ed885fcbfcbcdd199d0ff5a66b1 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Tue, 5 Aug 2025 15:31:10 +0530 Subject: [PATCH] CHANGE_BDS_CRS : RV --- app/Controllers/ClientController.php | 22 ++++++--------- app/Views/newClientModal.php | 2 +- .../policy_transaction_inception_form.php | 10 +++++-- .../policy_transaction_inception_list.php | 28 +++++++++++++------ 4 files changed, 38 insertions(+), 24 deletions(-) diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php index c2c94c0f..f7bb29ba 100755 --- a/app/Controllers/ClientController.php +++ b/app/Controllers/ClientController.php @@ -4213,7 +4213,7 @@ class ClientController extends AdminController $client_data = [ 'client_type' => $postData['client_type'], 'client_name' => $postData['client_name'], - 'short_name' => $postData['short_name'], + 'short_name' => $postData['short_name'] ?? $postData['client_name'], 'pan' => $postData['pan'], 'client_code' => generate_client_code(), ]; @@ -5031,24 +5031,24 @@ class ClientController extends AdminController // ---------- EMP SERVICE CONTROLLER -------------------------------------------------------------------------------- - $employeeRestController = new EmployeeServiceController(); - // $employeeRestController->excelFileDataValidation(['file_id' => 1629]); die; - // $employeeRestController->employeesOnboardPreprocess(['file_id' => 726]); - // $employeeRestController->employeesOnboardProcess(['file_id' => 835]); - // $employeeRestController->employeesEnrollmentInsert(['file_id' => 836]); - // $r = Jobs::addJob(['job_name' => 'employeesEnrollmentInsert','payload' => ['file_id' => 721]]); $empServiceController = new EmployeeServiceController(); // $res = $empServiceController->excelFileFormatValidation(['file_id' => '865']); // $res = $empServiceController->excelFileDataValidation(['file_id' => '865']); + // $res = $empServiceController->employeesOnboardPreprocess(['file_id' => 726]); + // $res = $empServiceController->employeesOnboardProcess(['file_id' => 835]); + // $res = $empServiceController->employeesEnrollmentInsert(['file_id' => 836]); // $res = $empServiceController->employeesSIEnhanceProcess(['file_id' => '978']); - // $res = $empServiceController->employeeDisembark(['file_id' => '1681']); dd( $res); + // $res = $empServiceController->employeeDisembark(['file_id' => '1681']); + // $res = $empServiceController->employeesCorrectionProcess(['file_id' => '1681']); + // dd( $res); + + // ---------- POLICY TRANSACTION CONTROLLER -------------------------------------------------------------------------------- $policyTransactionController = new PolicyTransactionController(); // $res = $policyTransactionController->validateInsurerStatement(['file_id' => '17']); // $res = $policyTransactionController->updateInsurerStatement(['file_id' => '22']); // dd('-----', $res); - // ----------EMP DATA SERVICE CONTROLLER-------------------------------------------------------------------------------- $batch_data = [ @@ -5100,10 +5100,6 @@ class ClientController extends AdminController // return $this->downloadInsurerExcelExport($batch_data); // dd($res); die; - $PolicyTransactionController = new PolicyTransactionController(); - $res = $PolicyTransactionController->validateInsurerStatement(['file_id' => '131']); - dd($res); - // $params = [ // 'client_policy_id' => 6090, // 'action_type' => "inception", diff --git a/app/Views/newClientModal.php b/app/Views/newClientModal.php index 7343571a..dfe4d66a 100644 --- a/app/Views/newClientModal.php +++ b/app/Views/newClientModal.php @@ -86,7 +86,7 @@
- +
diff --git a/app/Views/policy_transaction_inception_form.php b/app/Views/policy_transaction_inception_form.php index 2d15e411..4c99fe7a 100644 --- a/app/Views/policy_transaction_inception_form.php +++ b/app/Views/policy_transaction_inception_form.php @@ -1399,6 +1399,9 @@ $(document).ready(function(){ $('#email2').prop('required', true); $('#aadhar').prop('required', true); + $('#short_name').closest('.form-group').hide(); + $('#short_name').removeAttr('required'); + } else { $('.branchdiv').show(); @@ -1408,7 +1411,7 @@ $(document).ready(function(){ $('#client_branch_id').prop('required', true); $('#branch_code').prop('required', true); $('#name').prop('required', true); - $('#mobile').prop('required', true); + $('#mobile').prop('required', false); $('#gst').prop('required', true); $('#email').prop('required', true); @@ -1417,6 +1420,9 @@ $(document).ready(function(){ $('#email2').prop('required', false); $('#aadhar').prop('required', false); + $('#short_name').closest('.form-group').show(); + $('#short_name').attr('required', 'required'); + } var myModal = new bootstrap.Modal(document.getElementById('upload_enrollment_model')); @@ -3713,7 +3719,7 @@ $('#client_type').change(function() { $('#client_branch_id').prop('required', true); $('#branch_code').prop('required', true); $('#name').prop('required', true); - $('#mobile').prop('required', true); + $('#mobile').prop('required', false); $('#gst').prop('required', true); $('#email').prop('required', true); diff --git a/app/Views/policy_transaction_inception_list.php b/app/Views/policy_transaction_inception_list.php index 59218b46..cec7a681 100644 --- a/app/Views/policy_transaction_inception_list.php +++ b/app/Views/policy_transaction_inception_list.php @@ -188,9 +188,9 @@ table.dataTable tbody td {
-
+
@@ -217,7 +214,13 @@ table.dataTable tbody td { } ?> -
+
+ + + +
+ +
@@ -1216,6 +1219,15 @@ $(document).ready(function(){ if($('#client_type').val()){ $('#client_id').val('').change(); + + if($('#client_type').val() == 2){ + $('#short_name').closest('.form-group').hide(); + $('#short_name').removeAttr('required'); + } else { + $('#short_name').closest('.form-group').show(); + $('#short_name').attr('required', 'required'); + } + var myModal = new bootstrap.Modal(document.getElementById('upload_enrollment_model')); myModal.show(); }else{ @@ -1512,7 +1524,7 @@ function fetchEmpolyeeList(event) var insurer_id = $('#insurer_id_for_search').val(); var policy_type_id = $('#policy_type_for_search').val(); var date_type = $('#date_type').val(); - var issuer = $('#issuer_for_search').val(); + var issuer = $('#issuer_for_search').val() || 0; var status = $('#policy_status_for_search').val(); console.log(start_date + '-' + end_date);