FIX_CLIENT_POLICY_ISSUE
This commit is contained in:
parent
3aa6655c4b
commit
959f6620bd
@ -5301,6 +5301,15 @@ class EmpDataServiceController extends BaseController
|
|||||||
$salse_person_id = $lead_data['created_by'] ?? null;
|
$salse_person_id = $lead_data['created_by'] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// get the policy transaction id for client policy id
|
||||||
|
$policy_transaction_data = $this->policyTransactionModel->where('is_active', 1)->where('TRIM(policy_no)', $policy_data['policy_no'])->where('action_type', 'inception')->first();
|
||||||
|
$client_policy_id = null;
|
||||||
|
if(!empty($policy_transaction_data) && $params['action_type'] != "inception"){
|
||||||
|
$client_policy_id = $policy_transaction_data['id'] ?? null;
|
||||||
|
}else{
|
||||||
|
$client_policy_id = $policy_data['id'] ?? null;
|
||||||
|
}
|
||||||
|
|
||||||
$policyTransactionData = [
|
$policyTransactionData = [
|
||||||
|
|
||||||
'issuer' => 2,
|
'issuer' => 2,
|
||||||
@ -5312,7 +5321,7 @@ class EmpDataServiceController extends BaseController
|
|||||||
'tpa_id' => $policy_data['tpa_id'] ?? null,
|
'tpa_id' => $policy_data['tpa_id'] ?? null,
|
||||||
'tpa_branch_id' => $policy_data['tpa_branch_id'] ?? null,
|
'tpa_branch_id' => $policy_data['tpa_branch_id'] ?? null,
|
||||||
'policy_type_id' => $policy_data['policy_type_id'] ?? null,
|
'policy_type_id' => $policy_data['policy_type_id'] ?? null,
|
||||||
'client_policy_id' => $policy_data['id'] ?? null,
|
'client_policy_id' => $client_policy_id,
|
||||||
'policy_no' => $policy_data['policy_no'] ?? null,
|
'policy_no' => $policy_data['policy_no'] ?? null,
|
||||||
'cd_ac_no' => $policy_data['cd_ac_no'] ?? null,
|
'cd_ac_no' => $policy_data['cd_ac_no'] ?? null,
|
||||||
'cd_ac_pk' => $policy_data['cd_ac_pk'] ?? null,
|
'cd_ac_pk' => $policy_data['cd_ac_pk'] ?? null,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user