FEAT_INSURER_NAME_AND_TPA_NAME_FOR_HR
This commit is contained in:
parent
ad9e658a9b
commit
83eac29e70
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user