CHANGE_ADD_TAT_WISE_REPORT_VIEW_FILE : RV
This commit is contained in:
parent
e259fa5a27
commit
66dedc24e7
@ -4084,10 +4084,10 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
$ticketModel = new TicketMasterModel();
|
// $ticketModel = new TicketMasterModel();
|
||||||
$reportData['data'] = $ticketModel->getTATReport(1);
|
// $reportData['data'] = $ticketModel->getTATReport(1);
|
||||||
// print_rr($reportData);
|
// print_rr($reportData);
|
||||||
$this->loadLayout('tat_report_band_wise_list', $reportData);
|
// $this->loadLayout('tat_report_band_wise_list', $reportData);
|
||||||
// $data = $ticketModel->getTATReport(1);
|
// $data = $ticketModel->getTATReport(1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -865,7 +865,7 @@ class TicketController extends BaseController
|
|||||||
$fromDate = \DateTime::createFromFormat('d-m-Y', $from_Date)->format('Y-m-d');
|
$fromDate = \DateTime::createFromFormat('d-m-Y', $from_Date)->format('Y-m-d');
|
||||||
$toDate = \DateTime::createFromFormat('d-m-Y', $to_Date)->format('Y-m-d');
|
$toDate = \DateTime::createFromFormat('d-m-Y', $to_Date)->format('Y-m-d');
|
||||||
$policy_type = $received_data['policy_type'];
|
$policy_type = $received_data['policy_type'];
|
||||||
// print_rr($received_data);
|
// print_rr($received_data);
|
||||||
if ($received_data['report_type'] == "acc_manager_wise_status"){
|
if ($received_data['report_type'] == "acc_manager_wise_status"){
|
||||||
|
|
||||||
$viewData['account_manager_wise_data'] = $this->accountManagerWiseReport($policy_type,$fromDate,$toDate);
|
$viewData['account_manager_wise_data'] = $this->accountManagerWiseReport($policy_type,$fromDate,$toDate);
|
||||||
@ -884,6 +884,12 @@ class TicketController extends BaseController
|
|||||||
$html = view('claims_report_tpa_wise',$viewData);
|
$html = view('claims_report_tpa_wise',$viewData);
|
||||||
return $this->respond(['status' => true, 'html' => $html], 200);
|
return $this->respond(['status' => true, 'html' => $html], 200);
|
||||||
|
|
||||||
|
}else if ($received_data['report_type'] == 'tat_band_wise'){
|
||||||
|
|
||||||
|
$viewData['data'] = $this->ticketMasterModel->getTATReport($policy_type, $fromDate, $toDate);
|
||||||
|
$html = view('tat_report_band_wise_list',$viewData);
|
||||||
|
return $this->respond(['status' => true, 'html' => $html], 200);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -160,7 +160,7 @@ class TicketMasterModel extends Model
|
|||||||
$ticket_type_data_1 = "";
|
$ticket_type_data_1 = "";
|
||||||
$ticket_type_data_2 = "";
|
$ticket_type_data_2 = "";
|
||||||
if(!empty($ticket_type)){
|
if(!empty($ticket_type)){
|
||||||
$ticket_type_data_1 = "WHERE ticket_type = $ticket_type";
|
$ticket_type_data_1 = "AND ticket_type = $ticket_type";
|
||||||
$ticket_type_data_2 = "AND tm.ticket_type_id = $ticket_type";
|
$ticket_type_data_2 = "AND tm.ticket_type_id = $ticket_type";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -168,6 +168,7 @@ class TicketMasterModel extends Model
|
|||||||
$statusQuery = " SELECT
|
$statusQuery = " SELECT
|
||||||
id, claim_status
|
id, claim_status
|
||||||
FROM ticket_claim_status
|
FROM ticket_claim_status
|
||||||
|
Where is_active = 1
|
||||||
$ticket_type_data_1
|
$ticket_type_data_1
|
||||||
";
|
";
|
||||||
$statusResult = $this->db->query($statusQuery)->getResultArray();
|
$statusResult = $this->db->query($statusQuery)->getResultArray();
|
||||||
@ -239,6 +240,9 @@ class TicketMasterModel extends Model
|
|||||||
$ticket_type_data_2
|
$ticket_type_data_2
|
||||||
AND tm.created_at >= '$fromDate'
|
AND tm.created_at >= '$fromDate'
|
||||||
AND tm.created_at <= '$toDate'
|
AND tm.created_at <= '$toDate'
|
||||||
|
AND tm.is_active = 1
|
||||||
|
AND th.is_active = 1
|
||||||
|
AND tcs.is_active = 1
|
||||||
) AS subquery ON tc.TAT_Category = subquery.TAT_Category
|
) AS subquery ON tc.TAT_Category = subquery.TAT_Category
|
||||||
GROUP BY
|
GROUP BY
|
||||||
tc.TAT_Category
|
tc.TAT_Category
|
||||||
@ -256,13 +260,13 @@ class TicketMasterModel extends Model
|
|||||||
$data = $this->db->query($sql)->getResultArray();
|
$data = $this->db->query($sql)->getResultArray();
|
||||||
// dd($this->db->getLastQuery(), $data);
|
// dd($this->db->getLastQuery(), $data);
|
||||||
|
|
||||||
$tableData = [];
|
// $tableData = [];
|
||||||
if (!empty($data)) {
|
// if (!empty($data)) {
|
||||||
// Extract table headers from the first row keys
|
// // Extract table headers from the first row keys
|
||||||
$headers = array_keys($data[0]);
|
// $headers = array_keys($data[0]);
|
||||||
$tableData['headers'] = $headers;
|
// $tableData['headers'] = $headers;
|
||||||
$tableData['body'] = $data;
|
// $tableData['body'] = $data;
|
||||||
}
|
// }
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user