diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php
index 3d1ca91e..07fb963a 100755
--- a/app/Controllers/ClientController.php
+++ b/app/Controllers/ClientController.php
@@ -4705,6 +4705,9 @@ class ClientController extends AdminController
// $this->loadLayout('tat_report_band_wise_list', $reportData);
// $data = $ticketModel->getTATReport(1);
+ // $empmodel = new EmployeeModel();
+ // $data = $empmodel->getEmployeePolicy(348);
+ // dd($data);
}
// -------------------------------------------------------------------------------------------------------
diff --git a/app/Models/EmployeeModel.php b/app/Models/EmployeeModel.php
index 14ec368d..57ac791b 100755
--- a/app/Models/EmployeeModel.php
+++ b/app/Models/EmployeeModel.php
@@ -149,7 +149,21 @@ class EmployeeModel extends Model
{
return $this->db->table('employee_polices')
- ->select(' policy_type.long_name as Policy_Name , client_policy.policy_terms as Policy_Terms, client_policy.client_id as ClientId, client_policy.policy_id as PolicyId,client_policy.id as ClientPolicyId, client_policy.open_for_enrollment as OpenForEnrollment,client_policy.disclaimer,client_policy.policy_type_id , employee_polices.tpa_id as tpa_id , employee_polices.rand_string as rand_string') // Select all columns from both tables
+ ->select('
+ policy_type.long_name as Policy_Name ,
+ client_policy.policy_terms as Policy_Terms,
+ client_policy.client_id as ClientId,
+ client_policy.policy_id as PolicyId,
+ client_policy.id as ClientPolicyId,
+ CASE
+ WHEN client_policy.open_for_enrollment IS NULL THEN 0
+ ELSE client_policy.open_for_enrollment
+ END AS OpenForEnrollment,
+ client_policy.disclaimer,
+ client_policy.policy_type_id ,
+ employee_polices.tpa_id as tpa_id ,
+ employee_polices.rand_string as rand_string
+ ', FALSE) // Select all columns from both tables
->join('client_policy', 'client_policy.id = employee_polices.client_policy_id')
->join('policy_type', 'policy_type.id = client_policy.policy_type_id')
->where('client_policy.policy_status', 1)
diff --git a/app/Models/PolicyTransactionModel.php b/app/Models/PolicyTransactionModel.php
index bb5f5954..e2a25cc6 100644
--- a/app/Models/PolicyTransactionModel.php
+++ b/app/Models/PolicyTransactionModel.php
@@ -607,7 +607,8 @@ class PolicyTransactionModel extends Model
policy_type.policy_type,
pt_co_share_details.agreed_amt AS amount,
pt_co_share_details.bp_amt AS bp,
- pt_co_share_details.tp_amt AS tp
+ pt_co_share_details.tp_amt AS tp,
+ clients.pan
')
->join('pt_co_share_details', 'policy_transaction.id = pt_co_share_details.pt_id', 'left')
->join('clients', 'clients.id = policy_transaction.client_id', 'left')
diff --git a/app/Views/layout/header.php b/app/Views/layout/header.php
index f26439e5..66d00a2a 100755
--- a/app/Views/layout/header.php
+++ b/app/Views/layout/header.php
@@ -691,111 +691,121 @@
-
+
-
-
-
- 2
- Policy Transactions
-
-
+
+
+
-
+
diff --git a/app/Views/policy_transaction_inception_form.php b/app/Views/policy_transaction_inception_form.php
index 5b7ebdd3..6f61ded5 100644
--- a/app/Views/policy_transaction_inception_form.php
+++ b/app/Views/policy_transaction_inception_form.php
@@ -480,7 +480,7 @@
-
+