PD_Controller.php edited online with Bitbucket

This commit is contained in:
gandhimathi 2022-03-16 10:04:42 +00:00
parent eb9be5ff86
commit 5ac886a73c

View File

@ -11005,10 +11005,9 @@ public function getCompaniesListsFromGeneralFormRawJSONV2_post()
// is_smc_vendor(true/false) - here this api called both smart pd(vendor) and SMC(vendor) also but we using this key only for SMC(vendor module).
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)){
$records['pd_status'] = $records['vendor_status']; //Here vendor_status is (QC_COMPLETED) means i have to update the Normal Status also.
unset($records['vendor_status']);//Here vendor status unsetted when qc_completed means.
$fields_to_update['pd_status'] = COMPLETED; //Here vendor_status is (QC_COMPLETED) means i have to update the Normal Status as COMPLETED.
}
// else{ $records['vendor_status'] = $records['pd_status']; }
else{ $fields_to_update['vendor_status'] = $records['pd_status']; }
}
if(!isset($records['complete_override_data']) && isset($records['is_smc_vendor']) && $records['is_smc_vendor'] == false)
{