90 day Data 1 : ps
This commit is contained in:
parent
66302add17
commit
aa811d7daa
@ -585,9 +585,10 @@ class Data_Dump_Controller extends REST_Controller
|
|||||||
log_message('ERROR', "PD Serial No => " . $pdsno);
|
log_message('ERROR', "PD Serial No => " . $pdsno);
|
||||||
$tgr_cond_arr = array('PDTRIGGER.pd_status' => QC_COMPLETED, 'PDTRIGGER.pd_sno' => $pdsno);
|
$tgr_cond_arr = array('PDTRIGGER.pd_status' => QC_COMPLETED, 'PDTRIGGER.pd_sno' => $pdsno);
|
||||||
}else if(($from_date != "" || $from_date != null) && ($to_date != "" || $to_date != null)){
|
}else if(($from_date != "" || $from_date != null) && ($to_date != "" || $to_date != null)){
|
||||||
$newDate1 = date("d/m/Y", strtotime($from_date));
|
$newDate1 = date("Y-m-d", strtotime($from_date));
|
||||||
$newDate2 = date("d/m/Y", strtotime($to_date));
|
$newDate2 = date("Y-m-d", strtotime($to_date));
|
||||||
$where = 'DATE_FORMAT(PDTRIGGER.createdon, "%d/%m/%Y") BETWEEN ' ."'$newDate1'". ' AND ' ."'$newDate2'";
|
log_message('ERROR', "PD Date Given Format => " . $from_date ." to ".$to_date." Changed ".$newDate1." to ".$newDate2);
|
||||||
|
$where = 'DATE_FORMAT(PDTRIGGER.createdon, "%Y-%m-%d") BETWEEN ' ."'$newDate1'". ' AND ' ."'$newDate2'";
|
||||||
$tgr_cond_arr = array('PDTRIGGER.pd_status' => QC_COMPLETED, $where => null);
|
$tgr_cond_arr = array('PDTRIGGER.pd_status' => QC_COMPLETED, $where => null);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -596,10 +597,9 @@ class Data_Dump_Controller extends REST_Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 'PDTRIGGER.fk_customer_segment'=> 11 // 1 4 5 8 9 10 11
|
// 'PDTRIGGER.fk_customer_segment'=> 11 // 1 4 5 8 9 10 11
|
||||||
log_message('ERROR', "trigger details Total count " . count($tgr_cond_arr));
|
|
||||||
$tgr_dtls = $this->PD_Model->getJoinRecords($columns, $table, $joins, $tgr_cond_arr);
|
$tgr_dtls = $this->PD_Model->getJoinRecords($columns, $table, $joins, $tgr_cond_arr);
|
||||||
// print_r($this->db->last_query());die();
|
log_message('ERROR', "Trigger Details Total Records => " . count($tgr_dtls));
|
||||||
// print_r($tgr_dtls);die();
|
// print_r($tgr_dtls); print_r($this->db->last_query());die();
|
||||||
// $i = 0; // testing Purpose only
|
// $i = 0; // testing Purpose only
|
||||||
// for($i = 0 ;$i < 3;$i++){ // testing purpose only.
|
// for($i = 0 ;$i < 3;$i++){ // testing purpose only.
|
||||||
for ($i = 0; $i < count($tgr_dtls); $i++) {
|
for ($i = 0; $i < count($tgr_dtls); $i++) {
|
||||||
|
|||||||
@ -552,6 +552,7 @@ class PDALERTS
|
|||||||
$mail->addBCC("cpa@smcfinance.com");
|
$mail->addBCC("cpa@smcfinance.com");
|
||||||
$mail->addBCC("neville@sinemanagement.com");
|
$mail->addBCC("neville@sinemanagement.com");
|
||||||
$mail->addBCC("ssa@venbainfotech.com");
|
$mail->addBCC("ssa@venbainfotech.com");
|
||||||
|
$mail->addBCC("aakashjadhav@smcfinance.com");
|
||||||
$mail->addAddress('cpumumbai@smcfinance.com');
|
$mail->addAddress('cpumumbai@smcfinance.com');
|
||||||
if(in_array((string)$city,$city_arg)){ $mail->addBCC("satendersingh@smcfinance.com");}
|
if(in_array((string)$city,$city_arg)){ $mail->addBCC("satendersingh@smcfinance.com");}
|
||||||
// $mail->addBCC("vitvelz@gmail.com");
|
// $mail->addBCC("vitvelz@gmail.com");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user