From 30955f09c6ab29f41d268d63068d0fe8dcefef47 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Sat, 5 Jul 2025 11:07:27 +0530 Subject: [PATCH] CHANGE_TICKET_API : RV --- app/Controllers/EmployeeRestController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index c8191df2..e8cb43c7 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -2552,12 +2552,16 @@ class EmployeeRestController extends AdminController 'tm.awb_no_courier_name', 'tm.non_id_reason', 'tm.pay_initiate_date', - 'tm.approved_description' + 'tm.approved_description', + 'pt.policy_type as policy_type', + 'cp.policy_no as client_policy_no', ]); $builder->join('insurers i', 'i.id = tm.insurer_id AND i.is_active = 1', 'left'); $builder->join('clients c', 'c.id = tm.client_id AND c.is_active = 1', 'left'); $builder->join('ticket_claim_status tcs', 'tcs.id = tm.claim_status_id AND tcs.is_active = 1', 'left'); + $builder->join('client_policy cp', 'tm.client_policy_id = cp.id', 'left'); + $builder->join('policy_type pt', 'cp.policy_type_id = pt.id', 'left'); $builder->where('tm.is_active', 1);