From 6fcd264975ce8c39c492b67142f613b559bbb63a Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Tue, 3 Feb 2026 15:36:00 +0530 Subject: [PATCH] FIX_ISSUES --- app/Controllers/ClientController.php | 1 + app/Controllers/EmployeeRestController.php | 4 +--- app/Views/policy_transaction_endorsement_form.php | 4 ++++ app/Views/policy_transaction_inception_form.php | 7 +++++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php index 9cf2030c..894f98c4 100755 --- a/app/Controllers/ClientController.php +++ b/app/Controllers/ClientController.php @@ -2292,6 +2292,7 @@ class ClientController extends AdminController $data['issuer'] = 2; $data['status'] = 'completed'; $data['renewal_date'] = $data['policy_end_date']; + $data['bro_payable_by'] = 1; $insert = $this->policyTransactionModel->insert($data); if($insert){ diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index 0c2eac3d..e004cdb1 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -4616,9 +4616,7 @@ class EmployeeRestController extends AdminController $employeeController = new EmployeeController(); $responce = $employeeController->employeesUplodWithEvents($post_data); // print_r($responce); die; - - $file_data = $this->getDataFromHrFilesTable(['hr_id' => $post_data['created_by']]); - $responce['data'] = $file_data; + return $responce; // if(isset($responce['file_id'])){ diff --git a/app/Views/policy_transaction_endorsement_form.php b/app/Views/policy_transaction_endorsement_form.php index cdf6a4bd..7f6237d2 100644 --- a/app/Views/policy_transaction_endorsement_form.php +++ b/app/Views/policy_transaction_endorsement_form.php @@ -1073,6 +1073,10 @@ $('#policy_start_date').val(res.data.policy_start_date); $('#policy_end_date').val(res.data.policy_end_date); $('#insurer_id').val(res.data.insurer_branch_id + '-' + res.data.insurer_id); + $('#client_type').addClass('readonly-select '); + $('#client_id').addClass('readonly-select ').select2('destroy'); + $('#client_branch_id').addClass('readonly-select ').select2('destroy'); + $('#client_policy_id').addClass('readonly-select ').select2('destroy'); }, 1500) $('#policy_no').val(res.data.policy_no); diff --git a/app/Views/policy_transaction_inception_form.php b/app/Views/policy_transaction_inception_form.php index 6a0cb78c..6d29b5a6 100644 --- a/app/Views/policy_transaction_inception_form.php +++ b/app/Views/policy_transaction_inception_form.php @@ -2255,7 +2255,7 @@ var page_title = 'Edit Policy' + (res.data.client_short_name || res.data.policy_type || res.data.policy_no ? ' - ' + [res.data.client_short_name, res.data.policy_type, res.data.policy_no] .filter(Boolean).join('-') : ''); - + $('#page_title').text(page_title); $('#client_id_kyc').val(res.data.client_id); $('#policy_tranction_primarykey_for_file_upload').val(res.data.id); @@ -2384,6 +2384,9 @@ $('#table_tr_37').hide(); } + $('#client_id').addClass('readonly-select ').select2('destroy'); + $('#client_branch_id').addClass('readonly-select ').select2('destroy'); + }, 4000) // Set additional fields @@ -2485,7 +2488,7 @@ // } else { // $('#bro_payable_by').prop('checked', false); // } - $('#bro_payable_by').val(res.data.bro_payable_by); + $('#bro_payable_by').val(res.data.bro_payable_by ?? 1); // Policy transaction status handling if (res.data.status == "completed") {