SMC FEEDBACK 1
This commit is contained in:
parent
74806f0691
commit
e552dfebb7
@ -1071,13 +1071,13 @@ class PD_Controller extends REST_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(isset($pd_details['pd_status']) && $pd_details['pd_status'] == BOUNCED || $pd_details['pd_status'] == TRIGGERED)
|
//if(isset($pd_details['pd_status']) && $pd_details['pd_status'] == BOUNCED || $pd_details['pd_status'] == TRIGGERED)
|
||||||
{
|
//{
|
||||||
//implement smc related stuffs
|
//implement smc related stuffs
|
||||||
$pd_details = $this->smcStuffs($pd_details,$exist_pd_details);
|
$pd_details = $this->smcStuffs($pd_details,$exist_pd_details);
|
||||||
}
|
//}
|
||||||
|
// echo 'after';
|
||||||
|
// print_r($pd_details);
|
||||||
// die();
|
// 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);
|
||||||
@ -11094,7 +11094,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
|||||||
$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']) ;
|
$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);
|
$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) || ($pd_details['pd_status'] == ALLOCATED)))
|
||||||
{
|
{
|
||||||
$regional_credit_manager = $this->PD_Model->getRCM($pd_details['fk_city']);//pass pd address city as param
|
$regional_credit_manager = $this->PD_Model->getRCM($pd_details['fk_city']);//pass pd address city as param
|
||||||
if(count($regional_credit_manager))
|
if(count($regional_credit_manager))
|
||||||
|
|||||||
@ -72,22 +72,26 @@ class smc_creditpd
|
|||||||
$person_met = '';
|
$person_met = '';
|
||||||
foreach ($json['borrower_details'] as $key => $value)
|
foreach ($json['borrower_details'] as $key => $value)
|
||||||
{
|
{
|
||||||
|
$mobile_numbers = '';
|
||||||
if(isset($value['borrower_met']) && !strcasecmp($value['borrower_met'],'yes'))
|
|
||||||
{
|
|
||||||
$person_met .= $value['borrower_name'].', ';
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($value['mobile_numbers']) && count($value['mobile_numbers']))
|
if(isset($value['mobile_numbers']) && count($value['mobile_numbers']))
|
||||||
{
|
{
|
||||||
$mobile_numbers = '';
|
|
||||||
foreach ($value['mobile_numbers'] as $k => $smn)
|
foreach ($value['mobile_numbers'] as $k => $smn)
|
||||||
{
|
{
|
||||||
if((count($value['mobile_numbers']) - 1) == $k){$mobile_numbers .= ($smn['mobile_no']); break;}
|
if((count($value['mobile_numbers']) - 1) == $k){$mobile_numbers .= ($smn['mobile_no']); break;}
|
||||||
$mobile_numbers .= ($smn['mobile_no'].' - ');
|
$mobile_numbers .= ($smn['mobile_no'].',');
|
||||||
}
|
}
|
||||||
$json['borrower_details'][ $key ] ['mobile_numbers'] = $mobile_numbers;
|
$json['borrower_details'][ $key ] ['mobile_numbers'] = $mobile_numbers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isset($value['borrower_met']) && !strcasecmp($value['borrower_met'],'yes'))
|
||||||
|
{
|
||||||
|
$temp_person_met = $value['borrower_name'];
|
||||||
|
$temp_person_met .= ($mobile_numbers != '' ? '(' .$mobile_numbers. ') ,': ',');
|
||||||
|
$person_met .= $temp_person_met;
|
||||||
|
}
|
||||||
|
$mobile_numbers = '';
|
||||||
|
|
||||||
}
|
}
|
||||||
// if(!isset($json['person_met']))
|
// if(!isset($json['person_met']))
|
||||||
// {
|
// {
|
||||||
@ -99,7 +103,7 @@ class smc_creditpd
|
|||||||
|
|
||||||
if(substr_count($person_met,','))
|
if(substr_count($person_met,','))
|
||||||
{
|
{
|
||||||
$person_met = substr_replace($person_met,' and ',strpos($person_met,','),2);
|
$person_met = substr_replace($person_met,' and ',strrpos($person_met,','),2);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -215,7 +215,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
<?php if(isset($pd_section_data[1]['person_met']) && $pd_section_data[1]['person_met'] != ''){?>
|
<?php if(isset($pd_section_data[1]['person_met']) && $pd_section_data[1]['person_met'] != ''){?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<td colspan="3"> Name of Person Met During Visit</td>
|
<td colspan="3"> Name of Person Met During Visit and Contact Number</td>
|
||||||
<td class = "tdcenteralign" colspan="7"> <?php echo $pd_section_data[1]['person_met']?> </td>
|
<td class = "tdcenteralign" colspan="7"> <?php echo $pd_section_data[1]['person_met']?> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php }?>
|
<?php }?>
|
||||||
@ -452,7 +452,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3" >Addess of property</td>
|
<td colspan="3" >Addess of property</td>
|
||||||
<td class = "tdcenteralign" colspan="3" ><?php echo isset($pd_section_data[3]['address']) ? $pd_section_data[3]['address'].', '.$pd_section_data[3]['city']['name'].', '.$pd_section_data[3]['state']['name'].', '.$pd_section_data[3]['pincode'] : ''?></td>
|
<!-- <td class = "tdcenteralign" colspan="3" ><?php echo isset($pd_section_data[3]['address']) ? $pd_section_data[3]['address'].', '.$pd_section_data[3]['city']['name'].', '.$pd_section_data[3]['state']['name'].', '.$pd_section_data[3]['pincode'] : ''?></td> -->
|
||||||
|
<td class = "tdcenteralign" colspan="3" ><?php echo isset($pd_section_data[3]['address']) ? $pd_section_data[3]['address'] : ''?></td>
|
||||||
<td colspan="2" >Stage of construction</td>
|
<td colspan="2" >Stage of construction</td>
|
||||||
<td class = "tdcenteralign" colspan="2" ><?php echo isset($pd_section_data[3]['construction_stage']) ? $pd_section_data[3]['construction_stage'] : ''?></td>
|
<td class = "tdcenteralign" colspan="2" ><?php echo isset($pd_section_data[3]['construction_stage']) ? $pd_section_data[3]['construction_stage'] : ''?></td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -784,7 +785,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</tbody>
|
|
||||||
<?php }else
|
<?php }else
|
||||||
{
|
{
|
||||||
echo '<tr> <td class = "tdcenteralign" colspan="10">There is no other business asset available</td> </tr>';
|
echo '<tr> <td class = "tdcenteralign" colspan="10">There is no other business asset available</td> </tr>';
|
||||||
@ -793,12 +794,14 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
|||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</table>
|
|
||||||
<?php if(isset($pd_section_data[8]['common_remarks']) && !empty($pd_section_data[8]['common_remarks']))
|
<?php if(isset($pd_section_data[8]['common_remarks']) && !empty($pd_section_data[8]['common_remarks']))
|
||||||
{
|
{
|
||||||
echo '<br><br><table class="scorecard_table"><tr> <td class = "tdcenteralign" colspan="1">Business Assets Remarks - '.$pd_section_data[8]['common_remarks'].' </td></tr></table>';
|
//echo '<br><br><table class="scorecard_table"><tr> <td class = "tdcenteralign" colspan="1">Business Assets Remarks - '.$pd_section_data[8]['common_remarks'].' </td></tr></table>';
|
||||||
|
echo '<tr> <td class = "tdcenteralign" colspan="10">Business Assets Remarks - '.$pd_section_data[8]['common_remarks'].' </td></tr>';
|
||||||
}?>
|
}?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
<?php if(true){ ?>
|
<?php if(true){ ?>
|
||||||
<div id="page_break"></div>
|
<div id="page_break"></div>
|
||||||
<table class="scorecard_table">
|
<table class="scorecard_table">
|
||||||
@ -807,7 +810,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
|||||||
<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])) { ?>
|
<?php if(isset($pd_section_data[10]) && strtolower($pd_section_data[10]['financial_info_available']) == 'yes') { ?>
|
||||||
<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>
|
||||||
@ -1034,7 +1037,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
|||||||
<?php echo '<tr> <td class="tdcenteralign" colspan="2">Turn Over for Broken Period in CY</td> <td colspan="2" class="tdcenteralign"</td>'.$rupee_symbol.''. MYUTIL::customIndianNumberFormat($pd_section_data[10]['broken_period_turnover_cy']).'<td colspan="2" class="tdcenteralign">Turn Over for Broken Period in PY</td> <td colspan="2" class="tdcenteralign">'.$rupee_symbol.''.MYUTIL::customIndianNumberFormat($pd_section_data[10]['broken_period_turnover_py']).'</td> <td colspan="2" class="tdcenteralign">('.$uparrow.'/'. $downarrow.')in Turnover for Broken Period</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['broken_period_turnover_percent'].'%</td> </tr>'?>
|
<?php echo '<tr> <td class="tdcenteralign" colspan="2">Turn Over for Broken Period in CY</td> <td colspan="2" class="tdcenteralign"</td>'.$rupee_symbol.''. MYUTIL::customIndianNumberFormat($pd_section_data[10]['broken_period_turnover_cy']).'<td colspan="2" class="tdcenteralign">Turn Over for Broken Period in PY</td> <td colspan="2" class="tdcenteralign">'.$rupee_symbol.''.MYUTIL::customIndianNumberFormat($pd_section_data[10]['broken_period_turnover_py']).'</td> <td colspan="2" class="tdcenteralign">('.$uparrow.'/'. $downarrow.')in Turnover for Broken Period</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['broken_period_turnover_percent'].'%</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
|
<?php
|
||||||
@ -1044,6 +1047,11 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
|||||||
echo '<tr> <td class="tdcenteralign" colspan="10">Finance Data Not Available</td></tr>';
|
echo '<tr> <td class="tdcenteralign" colspan="10">Finance Data Not Available</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isset($pd_section_data[10]['common_remarks']) && !empty($pd_section_data[10]['common_remarks']))
|
||||||
|
{
|
||||||
|
echo '<tr> <td class="tdcenteralign" colspan="10">Remarks on Financials </td> <td colspan="10" class="tdcenteralign">'.$pd_section_data[10]['common_remarks'].'</td> </tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -1070,20 +1078,21 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
|||||||
<?php echo $pd_section_data[11]['display_data']['siz_row']?>
|
<?php echo $pd_section_data[11]['display_data']['siz_row']?>
|
||||||
<?php echo $pd_section_data[11]['display_data']['seven_row']?>
|
<?php echo $pd_section_data[11]['display_data']['seven_row']?>
|
||||||
<?php echo $pd_section_data[11]['display_data']['eigth_row']?>
|
<?php echo $pd_section_data[11]['display_data']['eigth_row']?>
|
||||||
</tbody>
|
|
||||||
|
|
||||||
<?php }
|
<?php }
|
||||||
|
|
||||||
else if(isset($pd_section_data[11]['supplier_not_available_reason'])){
|
else if(isset($pd_section_data[11]['supplier_not_available_reason']) && $pd_section_data[11]['supplier_not_available_reason'] != ''){
|
||||||
echo '<tr><td class="tdcenteralign">Supplier Information Not available. Reason - '.$pd_section_data[11]['supplier_not_available_reason'] .'</td></tr>';}
|
echo '<tr><td class="tdcenteralign" colspan='.(count($pd_section_data[12]['client_details']) + 1).'>Supplier Information Not available. Reason - '.$pd_section_data[11]['supplier_not_available_reason'] .'</td></tr>';}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo '<tr><td class="tdcenteralign">Supplier Information Not available</td></tr>';
|
echo '<tr><td class="tdcenteralign">Supplier Information Not available</td></tr>';
|
||||||
}
|
}
|
||||||
if(isset($pd_section_data[11]['common_remarks']) && !empty($pd_section_data[11]['common_remarks'])){
|
if(isset($pd_section_data[11]['common_remarks']) && !empty($pd_section_data[11]['common_remarks'])){
|
||||||
echo '<tr><td class="tdcenteralign">Remarks - '.$pd_section_data[11]['common_remarks'] .'</td></tr>';}
|
echo '<tr><td class="tdcenteralign" colspan='.(count($pd_section_data[12]['client_details']) + 1).' >Remarks - '.$pd_section_data[11]['common_remarks'] .'</td></tr>';}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
@ -1111,7 +1120,7 @@ if(isset($pd_section_data[11]['common_remarks']) && !empty($pd_section_data[11][
|
|||||||
</tbody>
|
</tbody>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
||||||
else if(isset($pd_section_data[12]['client_not_available_reason'])){
|
else if(isset($pd_section_data[12]['client_not_available_reason']) && $pd_section_data[12]['client_not_available_reason'] != ''){
|
||||||
echo '<tr><td class="tdcenteralign">Client Information Not available. Reason - '.$pd_section_data[12]['client_not_available_reason'] .'</td></tr>';}
|
echo '<tr><td class="tdcenteralign">Client Information Not available. Reason - '.$pd_section_data[12]['client_not_available_reason'] .'</td></tr>';}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1160,7 +1169,7 @@ if(isset($pd_section_data[12]['common_remarks']) && !empty($pd_section_data[12][
|
|||||||
echo '<td class="tdcenteralign" colspan="4">'.( ucfirst($pd_section_data[13]['estimated_uom']) ) .'</td></tr>';
|
echo '<td class="tdcenteralign" colspan="4">'.( ucfirst($pd_section_data[13]['estimated_uom']) ) .'</td></tr>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(isset($pd_section_data[13]['stock_not_available_reason']))
|
else if(isset($pd_section_data[13]['stock_not_available_reason']) && $pd_section_data[13]['stock_not_available_reason'] != '')
|
||||||
{
|
{
|
||||||
echo '<tr><td class="tdcenteralign" colspan="8">Stock Information Not available. Reason - '.$pd_section_data[13]['stock_not_available_reason'] .'</td></tr>';
|
echo '<tr><td class="tdcenteralign" colspan="8">Stock Information Not available. Reason - '.$pd_section_data[13]['stock_not_available_reason'] .'</td></tr>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user