PDF and Zip Fixes : ps
This commit is contained in:
parent
a8150ebb13
commit
b371f6493a
@ -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']; }
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user