FIX_LIVE_ISSUE_EXCEL_EXPORT_NOT_WORKING_FOR_MULTIPLE_EVENT_IN_CLIENT_RED_BARON : RV

This commit is contained in:
VENKATESHWARAN 2024-10-17 14:50:00 +05:30
parent 6decc1abae
commit 93ed0ce4e2

View File

@ -868,7 +868,7 @@ class EmpDataServiceController extends BaseController
}else if($value == 'inception'){
$export_data['event_type'] = 'inception';
$dependentAdditionData = $this->employeePolicyModel->getInceptionEmployeeDataForExportExcel($export_data);
$inceptionData = $this->employeePolicyModel->getInceptionEmployeeDataForExportExcel($export_data); //Live issue changes 17-10-2024
}else if($value == 'dependent_addition'){
$export_data['event_type'] = 'dependent_addition';
@ -943,12 +943,13 @@ class EmpDataServiceController extends BaseController
$template_json = $this->clientPolicyModel
->select('insurer_excel_export_template.jsoncolumns')
->join('insurer_excel_export_template', 'insurer_excel_export_template.insurer_id = client_policy.insurer_id and insurer_excel_export_template.policy_type_id = client_policy.policy_type_id')
->where('client_policy.id', $export_data['client_policy_id'])
->where('insurer_excel_export_template.event_name', 'all')
->where('insurer_excel_export_template.type_name', $export_data['actions'])
->first();
->select('insurer_excel_export_template.jsoncolumns')
->join('insurer_excel_export_template', 'insurer_excel_export_template.insurer_id = client_policy.insurer_id and insurer_excel_export_template.policy_type_id = client_policy.policy_type_id')
->where('client_policy.id', $export_data['client_policy_id'])
->where('insurer_excel_export_template.event_name', 'all')
->where('insurer_excel_export_template.is_active', 1) //Live issue changes 17-10-2024
->where('insurer_excel_export_template.type_name', $export_data['actions'])
->first();
if(!empty($template_json) && $template_json != null){