fixes : ps
This commit is contained in:
parent
5899d844a5
commit
00f3b3563b
@ -1635,9 +1635,9 @@ public function assignPDTempalate($data)
|
|||||||
$lender_id = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,PDTRIGGER);
|
$lender_id = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,PDTRIGGER);
|
||||||
$smc_lender_id = ENVIRONMENT == 'production' ? 7 : 35; //SMC lender id MWISE in live and demo
|
$smc_lender_id = ENVIRONMENT == 'production' ? 7 : 35; //SMC lender id MWISE in live and demo
|
||||||
|
|
||||||
if($smc_lender_id != $lender_id[0]['fk_lender_id']){
|
// if($smc_lender_id != $lender_id[0]['fk_lender_id']){
|
||||||
$records['pd_status'] = isset($records['pd_status']) ? $records['pd_status'] : ALLOCATED ;
|
// $records['pd_status'] = isset($records['pd_status']) ? $records['pd_status'] : ALLOCATED ;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// IF Condition - using PDID get the lender and mapped with SMC_lender_id macthed means Vendor status dynamically assigned
|
// IF Condition - using PDID get the lender and mapped with SMC_lender_id macthed means Vendor status dynamically assigned
|
||||||
if($smc_lender_id == $lender_id[0]['fk_lender_id'] && isset($records['pd_agency_id']) && $records['pd_agency_id'] != null){
|
if($smc_lender_id == $lender_id[0]['fk_lender_id'] && isset($records['pd_agency_id']) && $records['pd_agency_id'] != null){
|
||||||
@ -1645,6 +1645,7 @@ public function assignPDTempalate($data)
|
|||||||
}
|
}
|
||||||
else if(isset($records['pd_status']) && ($records['pd_status'] == ALLOCATED_TO_FIA ))
|
else if(isset($records['pd_status']) && ($records['pd_status'] == ALLOCATED_TO_FIA ))
|
||||||
{
|
{
|
||||||
|
$records['pd_status'] = isset($records['pd_status']) ? $records['pd_status'] : ALLOCATED ;
|
||||||
|
|
||||||
$records['vendor_status'] = TRIGGERED;
|
$records['vendor_status'] = TRIGGERED;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user