FIX_ISSUE
This commit is contained in:
parent
83296fa4af
commit
e5f0c34f8d
@ -2311,6 +2311,9 @@ class EmployeeRestController extends AdminController
|
|||||||
$emp_policy_status = 'active';
|
$emp_policy_status = 'active';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$db = \Config\Database::connect();
|
||||||
|
$emp_policy_status = $db->escape($emp_policy_status);
|
||||||
|
|
||||||
$ClientPolicyData = $this->clientPolicyModel
|
$ClientPolicyData = $this->clientPolicyModel
|
||||||
->select("
|
->select("
|
||||||
client_policy.id as client_policy_id ,
|
client_policy.id as client_policy_id ,
|
||||||
@ -2328,9 +2331,9 @@ class EmployeeRestController extends AdminController
|
|||||||
from employee_polices
|
from employee_polices
|
||||||
where is_active = 1
|
where is_active = 1
|
||||||
and status = $emp_policy_status
|
and status = $emp_policy_status
|
||||||
and client_policy_id = client_policy_id
|
and client_policy_id = client_policy.id
|
||||||
) as total_premium
|
) as total_premium
|
||||||
")
|
", false)
|
||||||
->where('md5(client_policy.client_id)', $this->request->getGet('client_id'))
|
->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.client_branch_id', $this->request->getGet('client_branch_id'))
|
||||||
->where('client_policy.is_active', 1)
|
->where('client_policy.is_active', 1)
|
||||||
@ -2470,6 +2473,7 @@ class EmployeeRestController extends AdminController
|
|||||||
$data['claim_status'] = $this->claimStatusModel
|
$data['claim_status'] = $this->claimStatusModel
|
||||||
->select('id,ticket_type, display_name as claim_status')
|
->select('id,ticket_type, display_name as claim_status')
|
||||||
->where('is_active', 1)
|
->where('is_active', 1)
|
||||||
|
->where('display_name IS NOT NULL OR display_name <> ""')
|
||||||
->groupBy('display_name')
|
->groupBy('display_name')
|
||||||
->findAll();
|
->findAll();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user