diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index 3ed1157a..176fba86 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -2312,6 +2312,10 @@ class EmployeeRestController extends AdminController client_policy.policy_no as policy_no, client_policy.insurer_id as insurer_id, client_policy.policy_terms, + insurers.name as insurer_name, + tpa.name as tpa_name, + tpa.short_name as tpa_short_name, + insurers.short_name as insurer_short_name, DATE_FORMAT(client_policy.policy_start_date, '%d-%m-%Y') AS policy_start_date, DATE_FORMAT(client_policy.policy_end_date, '%d-%m-%Y') AS policy_expiry_date, clients.client_logo as client_logo, @@ -2326,6 +2330,8 @@ class EmployeeRestController extends AdminController ", false) ->join('clients', 'clients.id = client_policy.client_id', 'left') ->join('policy_type', 'policy_type.id = client_policy.policy_type_id', 'left') + ->join('insurers', 'insurers.id = client_policy.insurer_id', 'left') + ->join('tpa', 'tpa.id = client_policy.tpa_id', 'left') ->where('md5(client_policy.client_id)', $this->request->getGet('client_id')) ->where('client_policy.client_branch_id', $this->request->getGet('client_branch_id')) ->where('client_policy.is_active', 1)