DASHBOARD DATA CHANGE OF SMC
This commit is contained in:
parent
b974579ec8
commit
3a6fdd44f4
@ -1023,7 +1023,7 @@ class PD_Controller extends REST_Controller {
|
||||
$pd_details['is_cus_link_disabled'] = 1;
|
||||
}
|
||||
|
||||
if(isset($pd_details['pd_status']) && ($pd_details['pd_status'] == TRIGGERED || $pd_details['pd_status'] == INITIATED || $pd_details['pd_status'] == ALLOCATED))
|
||||
if(isset($pd_details['pd_status']) && ($pd_details['pd_status'] == TRIGGERED || $pd_details['pd_status'] == INITIATED || $pd_details['pd_status'] == INPROGRESS))
|
||||
{
|
||||
|
||||
/***********************CHOOSE PD TEMPALATE*********************/
|
||||
|
||||
@ -26,11 +26,12 @@ class Dash_Board_Model extends SPARQ_Model {
|
||||
|
||||
public function getDetailsOfPDType($fdate,$tdate,$cityarr,$lenderarr)
|
||||
{
|
||||
$smc_lender_id = (ENVIRONMENT == 'production' ? 7 : 35)
|
||||
if(($lenderarr != "" || $lenderarr != null)&& ($cityarr != "" || $cityarr != null) && ($fdate && $tdate != '')){
|
||||
$sql_query = "SELECT if(fk_pd_type = 1,'FULL',if(fk_pd_type = 2,'SMART',if(fk_pd_type = 3,'TELE','NULL'))) as PDTYPE,pd_status,count(*) as count FROM t_pd_triggered where MONTH(createdon) = MONTH(CURDATE()) group by fk_pd_type,pd_status;";
|
||||
$sql_query = "SELECT if(fk_pd_type = 1,'FULL',if(fk_pd_type = 2,'SMART',if(fk_pd_type = 3,'TELE','NULL'))) as PDTYPE,pd_status,count(*) as count FROM t_pd_triggered where MONTH(createdon) = MONTH(CURDATE()) AND fk_lender_id != $smc_lender_id group by fk_pd_type,pd_status;";
|
||||
}
|
||||
else{
|
||||
$sql_query = "SELECT if(fk_pd_type = 1,'FULL',if(fk_pd_type = 2,'SMART',if(fk_pd_type = 3,'TELE','NULL'))) as PDTYPE,pd_status,count(*) as count FROM t_pd_triggered where ";
|
||||
$sql_query = "SELECT if(fk_pd_type = 1,'FULL',if(fk_pd_type = 2,'SMART',if(fk_pd_type = 3,'TELE','NULL'))) as PDTYPE,pd_status,count(*) as count FROM t_pd_triggered where fk_lender_id != $smc_lender_id AND";
|
||||
|
||||
if($lenderarr != "")
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user