CITY TO STATE CHGE 4 RCM

This commit is contained in:
Velz2020 2021-03-21 19:55:46 +05:30
parent ec299f4752
commit aee7e361c1

View File

@ -11124,14 +11124,14 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
if($user_details['data'][0]['user_role'] == 26)//Credit Manager
{
//get RCM and allocate to RCM
$rcm = $this->SMC_Credit_PD_Model->getSMCFlowUsers($existing_pd_details[0]['fk_city'],27);
$rcm = $this->SMC_Credit_PD_Model->getSMCFlowUsers($existing_pd_details[0]['fk_state'],27);
if(count($rcm))
{
$pd_details['fk_pd_allocated_to'] = $rcm[0]['userid'];
}
else
{
log_message('ERROR',('### Couldnot find RCM users in BOUNCED status - '.$existing_pd_details[0]['fk_city']));
log_message('ERROR',('### Couldnot find RCM users in BOUNCED status - '.$existing_pd_details[0]['fk_state']));
}