SMC FEEDBACKS REPORT DUMMY FIN TABLE
This commit is contained in:
parent
3bfdff19ad
commit
23ba0372f0
@ -1022,7 +1022,7 @@ class PD_Controller extends REST_Controller {
|
|||||||
/***********************CHOOSE PD TEMPALATE*********************/
|
/***********************CHOOSE PD TEMPALATE*********************/
|
||||||
$pd_details['fk_pd_template_id'] = $this->assignPDTempalate($pd_details['pd_id']);
|
$pd_details['fk_pd_template_id'] = $this->assignPDTempalate($pd_details['pd_id']);
|
||||||
//echo $pd_details['fk_pd_template_id'];
|
//echo $pd_details['fk_pd_template_id'];
|
||||||
$pd_details = $this->smcStuffs($pd_details);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1062,6 +1062,16 @@ class PD_Controller extends REST_Controller {
|
|||||||
$pd_details['cancel_pd_remark'] = $pd_details['remark'];
|
$pd_details['cancel_pd_remark'] = $pd_details['remark'];
|
||||||
unset($pd_details['remark']);
|
unset($pd_details['remark']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(isset($pd_details['pd_status']) && $pd_details['pd_status'] == BOUNCED || $pd_details['pd_status'] == TRIGGERED)
|
||||||
|
{
|
||||||
|
//implement smc related stuffs
|
||||||
|
$pd_details = $this->smcStuffs($pd_details,$exist_pd_details);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// die();
|
||||||
$where_condition_array = array('pd_id' => $pd_details['pd_id'],'random_string' => $pd_details['random_string']);
|
$where_condition_array = array('pd_id' => $pd_details['pd_id'],'random_string' => $pd_details['random_string']);
|
||||||
$pd_id_modified = $this->PD_Model->updateRecords($pd_details,PDTRIGGER,$where_condition_array);
|
$pd_id_modified = $this->PD_Model->updateRecords($pd_details,PDTRIGGER,$where_condition_array);
|
||||||
// print_r($this->db->last_query());
|
// print_r($this->db->last_query());
|
||||||
@ -1082,13 +1092,6 @@ class PD_Controller extends REST_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(isset($pd_details['pd_status']) && $pd_details['pd_status'] == BOUNCED)
|
|
||||||
{
|
|
||||||
//implement smc related stuffs
|
|
||||||
$pd_details = $this->smcStuffs($pd_details,$exist_pd_details);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if($pd_id_modified != null || $pd_id_modified != '' && $count != 0)
|
if($pd_id_modified != null || $pd_id_modified != '' && $count != 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -11081,7 +11084,8 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
|||||||
// $addresses[0]['fk_city'] = 3374;
|
// $addresses[0]['fk_city'] = 3374;
|
||||||
$mwise_lender_id = (ENVIRONMENT == 'production' ? 7 : 35);
|
$mwise_lender_id = (ENVIRONMENT == 'production' ? 7 : 35);
|
||||||
|
|
||||||
$is_mwise_lender = ( $pd_details['fk_lender_id'] == $mwise_lender_id ? true : false);
|
$current_lender_id = (isset($pd_details['fk_lender_id']) && $pd_details['fk_lender_id'] != '' ? $pd_details['fk_lender_id'] : $existing_pd_details[0]['fk_lender_id']) ;
|
||||||
|
$is_mwise_lender = ( $current_lender_id == $mwise_lender_id ? true : false);
|
||||||
// echo !$is_mwise_lender;
|
// echo !$is_mwise_lender;
|
||||||
if($is_mwise_lender && $pd_details['pd_status'] == TRIGGERED)
|
if($is_mwise_lender && $pd_details['pd_status'] == TRIGGERED)
|
||||||
{
|
{
|
||||||
@ -11105,7 +11109,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
|||||||
//find current user role
|
//find current user role
|
||||||
$this->load->model('User_Management_Model');
|
$this->load->model('User_Management_Model');
|
||||||
$this->load->model('SMC_Credit_PD_Model');
|
$this->load->model('SMC_Credit_PD_Model');
|
||||||
$user_details = $this->User_Management_Model->getUserDetails($createdby);
|
$user_details = $this->User_Management_Model->getUserDetails($pd_details['fk_updatedby']);
|
||||||
if($user_details['data'][0]['user_role'] == 26)//Credit Manager
|
if($user_details['data'][0]['user_role'] == 26)//Credit Manager
|
||||||
{
|
{
|
||||||
//get RCM and allocate to RCM
|
//get RCM and allocate to RCM
|
||||||
@ -11143,6 +11147,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// echo $pd_details['fk_pd_allocated_to'];die();
|
||||||
return $pd_details;
|
return $pd_details;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -805,6 +805,8 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
|||||||
<tr>
|
<tr>
|
||||||
<th class="thlargefont" colspan="10" >Financial Information</th>
|
<th class="thlargefont" colspan="10" >Financial Information</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<?php if(isset($pd_section_data[10])) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="6" >Name of the Company / Firm whose financials are noted </td>
|
<td colspan="6" >Name of the Company / Firm whose financials are noted </td>
|
||||||
<td class = "tdcenteralign" colspan="4" ><?php echo isset($applicant_details[0]['company_name']) ? $applicant_details[0]['company_name'] : $pd_master_details[0]['main_applicant']?></td>
|
<td class = "tdcenteralign" colspan="4" ><?php echo isset($applicant_details[0]['company_name']) ? $applicant_details[0]['company_name'] : $pd_master_details[0]['main_applicant']?></td>
|
||||||
@ -1033,6 +1035,17 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
|||||||
|
|
||||||
<?php if(!empty($pd_section_data[10]['common_remarks'])) {echo '<tr> <td class="tdcenteralign" colspan="2">Remarks on Financials >></td> <td colspan="10" class="tdcenteralign">'.$pd_section_data[10]['common_remarks'].'</td> </tr>';}?>
|
<?php if(!empty($pd_section_data[10]['common_remarks'])) {echo '<tr> <td class="tdcenteralign" colspan="2">Remarks on Financials >></td> <td colspan="10" class="tdcenteralign">'.$pd_section_data[10]['common_remarks'].'</td> </tr>';}?>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
else // if finance data not available . this condiiton opens at near by finace section heading
|
||||||
|
{
|
||||||
|
echo '<tr> <td class="tdcenteralign" colspan="10">Finance Data Not Available</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user