FIX_BDS TATReport shown Blank fixes
This commit is contained in:
parent
6169a16326
commit
3e9b843cc1
@ -937,7 +937,13 @@ class BDSReportController extends AdminController
|
||||
}
|
||||
}
|
||||
|
||||
public function bdsTATReport()
|
||||
/** New arugument Introduced Named as "$isInternalCalled"
|
||||
* Functional Based called means $isInternalCalled is True.
|
||||
* Output returning as Array
|
||||
* Route Based called means $isInternalCalled is False. becoz this is External Call
|
||||
* Output returning as Page
|
||||
*/
|
||||
public function bdsTATReport($isInternalCalled = false)
|
||||
{
|
||||
$sql = "
|
||||
SELECT
|
||||
@ -1010,9 +1016,8 @@ class BDSReportController extends AdminController
|
||||
// dd(db_connect()->getLastQuery(),$result);
|
||||
$data['data'] = $result;
|
||||
// dd($data, get_role_id(), ENROLLMENT_TEAM_ID, user_team());
|
||||
// return $this->loadLayout('bds_tat_wise_report', $data);
|
||||
|
||||
return $result;
|
||||
if ($isInternalCalled) { return $result; }
|
||||
return $this->loadLayout('bds_tat_wise_report', $data);
|
||||
}
|
||||
|
||||
public function accountMangerStatusBDSReport()
|
||||
@ -1141,7 +1146,7 @@ class BDSReportController extends AdminController
|
||||
if ($report_type == 1){
|
||||
|
||||
$data['page_title'] = "BDS TAT Report";
|
||||
$data['data'] = $this->bdsTATReport();
|
||||
$data['data'] = $this->bdsTATReport(true); // Functional Based called means True
|
||||
}else if ($report_type == 2){
|
||||
|
||||
$data['page_title'] = "Account Manager Status Report";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user