Completed Date Changes : ps

This commit is contained in:
VE10-Sanjeev 2023-04-06 10:43:32 +05:30
parent 34e82a0700
commit 5cd13c1da1

View File

@ -313,6 +313,7 @@ class SMC_Credit_PD_Controller extends REST_Controller {
$details = $this->SMC_Credit_PD_Model->selectCustomRecords($columns, $where_arr, $table);
if(!empty($details)){
$response = $this->dataSynchronization($smc_credit_pd,1);
//print_r($response);die;
$data['CETresponse'] = $response;
if($response){
log_message('ERROR', '#### Credit PD ('.$smc_credit_pd.') status '.json_encode($response)." Data Transfered");
@ -1420,12 +1421,14 @@ class SMC_Credit_PD_Controller extends REST_Controller {
if($from_date)
{
$this->db->WHERE('date(PDTRIGGER.updatedon) >=',$from_date);
//$this->db->WHERE('date(PDTRIGGER.updatedon) >=',$from_date);
$this->db->WHERE('date(PDTRIGGER.completed_on) >=',$from_date);
}
if($to_date)
{
$this->db->WHERE('date(PDTRIGGER.updatedon) <=',$to_date);
//$this->db->WHERE('date(PDTRIGGER.updatedon) <=',$to_date);
$this->db->WHERE('date(PDTRIGGER.completed_on) <=',$to_date);
}
if($officer_name)