finalremarks : ps
This commit is contained in:
parent
a671f9f9f4
commit
193a93a123
@ -24,7 +24,8 @@ class smc_creditpd
|
||||
case 14://future
|
||||
case 18://credit
|
||||
case 19://final remarks
|
||||
$return_data = json_decode($section['json'],true);
|
||||
// $return_data = json_decode($section['json'],true);
|
||||
$return_data = SELF::getFinalRemarksSectionData($section);
|
||||
break;
|
||||
case 3://fund
|
||||
$return_data = SELF::getLoanSectionData($section);
|
||||
@ -537,6 +538,17 @@ class smc_creditpd
|
||||
return $json;
|
||||
}
|
||||
|
||||
static function getFinalRemarksSectionData($section)
|
||||
{
|
||||
$json = json_decode($section['json'],true);
|
||||
$customer_behaviour = array(1 => 'Others',2 => 'Rude',3 => 'Polite');
|
||||
$pd_officer_recommandations = array(2=>'Positive',3=>'Negative',5=>'Refer to Credit',0=>'Others');
|
||||
$json['pd_officer_recommendation_name'] = isset($value['pd_officer_recommendation'])? $pd_officer_recommandations [ $value['pd_officer_recommendation_name'] ] : 'NA';
|
||||
$json['customer_behaviour_name'] = (isset($value['customer_behaviour']) ? $customer_behaviour [ $value['customer_behaviour'] ] : 'NA');
|
||||
// echo 'json***';
|
||||
// print_r($json);
|
||||
return $json;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user