is_smc_vendor key intro : ps
This commit is contained in:
parent
4b62f67d0a
commit
79dfc2315a
@ -10647,13 +10647,15 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
$current_lender_id = $exist_pd_details[0]['fk_lender_id'];
|
||||
$agency_id = $exist_pd_details[0]['pd_agency_id'];
|
||||
// IF Condition - using PDID get the lender and mapped with SMC_lender_id macthed means Vendor status dynamically assigned
|
||||
if($smc_lender_id == $current_lender_id && isset($agency_id) && $agency_id != null){
|
||||
// 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.
|
||||
$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.
|
||||
}
|
||||
// else{ $records['vendor_status'] = $records['pd_status']; }
|
||||
}
|
||||
if(!isset($records['complete_override_data']))
|
||||
if(!isset($records['complete_override_data']) && isset($records['is_smc_vendor']) && $records['is_smc_vendor'] == false)
|
||||
{
|
||||
$vendor_form = $this->PD_Model->selectCustomRecords(array('json'),array('isactive' => 1,'fk_form_id' => 25,'fk_pd_id' => $records['pd_id'])
|
||||
,PDFORMDETAILSJSON);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user