PDF and Zip Fixes : ps

This commit is contained in:
VE10-Sanjeev 2022-09-22 18:06:03 +05:30
parent a8150ebb13
commit b371f6493a

View File

@ -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']; }
}