diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index bd474cd8..e5b8c114 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -9679,6 +9679,17 @@ class PD_Controller extends REST_Controller if ($smc_lender_id == $current_lender_id && isset($agency_id) && $agency_id != null && $records['is_smc_vendor'] == true) { if (isset($records['vendor_status']) && ($records['vendor_status'] == QC_COMPLETED)) { $fields_to_update['pd_status'] = COMPLETED; //Here vendor_status is (QC_COMPLETED) means i have to update the Normal Status as COMPLETED. + $this->load->helper('smc_creditpd'); + if(isset($records['random_string'])){ + $random_string = $records['random_string']; + }else{ + $random_string = $this->PD_Model->selectCustomRecords(array('random_string'),array('pd_id' => $pd_details['pd_id']),PDTRIGGER); + $random_string = $random_string[0]['random_string'];} + + $ZIP = smc_creditpd::covertSMCImgs2ZIP($records['pd_id'],$random_string,array(),0); + log_message('ERROR','####COMPLETE SMC IMAGE ZIP = '.$ZIP); + $PDF = smc_creditpd::covertSMCImgs2PDF($records['pd_id'],$random_string,array(),0); + log_message('ERROR','####COMPLETE SMC IMAGE PDF = '.$PDF); } // else{ $fields_to_update['vendor_status'] = $records['pd_status']; } }