diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index 24685713..bdb99694 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -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'])); }