FIX_ISSUE
This commit is contained in:
parent
6b9d03d5a8
commit
c54fdad5f9
@ -2501,11 +2501,12 @@ class EmployeeRestController extends AdminController
|
|||||||
$client_id = isset($search_data['client_id']) ? (int) $search_data['client_id'] : 0;
|
$client_id = isset($search_data['client_id']) ? (int) $search_data['client_id'] : 0;
|
||||||
unset($search_data['client_id']);
|
unset($search_data['client_id']);
|
||||||
unset($search_data['client_branch_id']);
|
unset($search_data['client_branch_id']);
|
||||||
|
$policy_number = isset($search_data['policy_no']) ? $search_data['policy_no'] : null;
|
||||||
|
|
||||||
$from_date = isset($search_data['from_date']) ? $search_data['from_date'] : null;
|
$from_date = isset($search_data['from_date']) ? $search_data['from_date'] : null;
|
||||||
$to_date = isset($search_data['to_date']) ? $search_data['to_date'] : null;
|
$to_date = isset($search_data['to_date']) ? $search_data['to_date'] : null;
|
||||||
$claim_status_id = isset($search_data['claim_status_id']) ? $search_data['claim_status_id'] : null;
|
$claim_status_id = isset($search_data['claim_status_id']) ? $search_data['claim_status_id'] : null;
|
||||||
unset($search_data['from_date'], $search_data['to_date'], $search_data['claim_status_id']);
|
unset($search_data['from_date'], $search_data['to_date'], $search_data['claim_status_id'], $search_data['policy_no']);
|
||||||
|
|
||||||
$where = [];
|
$where = [];
|
||||||
|
|
||||||
@ -2625,6 +2626,10 @@ class EmployeeRestController extends AdminController
|
|||||||
$builder->whereIn('claim_status_id', $claim_status_ids);
|
$builder->whereIn('claim_status_id', $claim_status_ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($policy_number)) {
|
||||||
|
$builder->where('cp.policy_no', $policy_number);
|
||||||
|
}
|
||||||
|
|
||||||
$builder->orderBy('tm.id', 'DESC');
|
$builder->orderBy('tm.id', 'DESC');
|
||||||
|
|
||||||
$data = $builder->get()->getResultArray();
|
$data = $builder->get()->getResultArray();
|
||||||
@ -5501,11 +5506,16 @@ class EmployeeRestController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$policyTransactionModel = new PolicyTransactionModel();
|
$policyTransactionModel = new PolicyTransactionModel();
|
||||||
$policy_transaction_data = $policyTransactionModel
|
$builder = $policyTransactionModel
|
||||||
->where('is_active', 1)
|
->where('is_active', 1)
|
||||||
->where('policy_no', $client_policy_data['policy_no'])
|
->where('policy_no', $client_policy_data['policy_no'])
|
||||||
->where('action_type', $cd_data['event_name'])
|
->where('action_type', $cd_data['event_name']);
|
||||||
->findAll();
|
|
||||||
|
if (!empty($cd_data['endorsement_no']) && $cd_data['event_name'] != 'inception') {
|
||||||
|
$builder->where('endorsement_no', $cd_data['endorsement_no']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$policy_transaction_data = $builder->findAll();
|
||||||
|
|
||||||
if(empty($policy_transaction_data)){
|
if(empty($policy_transaction_data)){
|
||||||
$this->myLogger->logme('error', 'getPolicyAndEndorsementFiles: No Policy Transaction data found for policy_no=' . $client_policy_data['policy_no']);
|
$this->myLogger->logme('error', 'getPolicyAndEndorsementFiles: No Policy Transaction data found for policy_no=' . $client_policy_data['policy_no']);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user