From 193a93a123c02f50f948f86e0b798e65c9973439 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Mon, 23 May 2022 17:08:55 +0530 Subject: [PATCH] finalremarks : ps --- api/application/helpers/smc_creditpd_helper.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/api/application/helpers/smc_creditpd_helper.php b/api/application/helpers/smc_creditpd_helper.php index b406f971..eff46d62 100644 --- a/api/application/helpers/smc_creditpd_helper.php +++ b/api/application/helpers/smc_creditpd_helper.php @@ -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; + } } ?> \ No newline at end of file