CONT OF PRE CHANGES

This commit is contained in:
Velz2020 2020-08-11 14:37:32 +05:30
parent fa420ad77e
commit 62f5d12631
4 changed files with 8 additions and 6 deletions

View File

@ -4830,7 +4830,7 @@ public function getPDFormDetailsJSON_post()
// }
// else
// {
$pd_type = data['pd_master_details'][0]['fk_pd_type'] == 3 ? 3 : 1;
$pd_type = $data['pd_master_details'][0]['fk_pd_type'] == 3 ? 3 : 1;
$data['lender_disclaimer'] = $this->PD_Model->selectRecords(ENTITYDISCLAIMER,array('fk_entity_id' => ($data['pd_master_details'][0]['sub_entity_id'] ? $data['pd_master_details'][0]['sub_entity_id'] : $data['pd_master_details'][0]['fk_lender_id']),'fk_pd_type' => $pd_type));
//}
@ -4842,7 +4842,7 @@ public function getPDFormDetailsJSON_post()
//$data['dsc_cards'] = $this->getDetailedScoreCardChart( $data['pd_score'] );
$data['assessed_income_details'] = $this->getAssessedIncomeForPDReport($pdid);
if($data['pd_master_details'][0]['is_score_card_enabled'] != 0 && ($data['pd_master_details'][0]['customer_segment_abbr'] != "SAL"))
if($data['pd_master_details'][0]['is_score_card_enabled'] != 0 && ($data['pd_master_details'][0]['customer_segment_abbr'] != "SAL" && $data['pd_master_details'][0]['customer_segment_abbr'] != "SE-RI"))
{
$data['pd_score'] = $this->calculateScore($pdid);
$score_for_chart = $data['pd_score']['score_summary']['overall_score']['final_score'] ? round($data['pd_score']['score_summary']['overall_score']['final_score'],1) : 0;
@ -6160,7 +6160,7 @@ public function getPDFormDetailsJSON_post()
//print_r($data['pd_master_details'][0]['is_score_card_enabled']);die();
// echo "**************************";
//$data['dsc_cards'] = $this->getDetailedScoreCardChart( $data['pd_score'] );
if($data['pd_master_details'][0]['is_score_card_enabled'] == 1 && ($data['pd_master_details'][0]['customer_segment_abbr'] != "SAL"))// && $data['pd_master_details'][0]['customer_segment_abbr'] != "SAL-CHQ")) //&& ($data['pd_master_details'][0]['customer_segment_abbr'] != ''))
if($data['pd_master_details'][0]['is_score_card_enabled'] == 1 && ($data['pd_master_details'][0]['customer_segment_abbr'] != "SAL" && $data['pd_master_details'][0]['customer_segment_abbr'] != "SE-RI"))// && $data['pd_master_details'][0]['customer_segment_abbr'] != "SAL-CHQ")) //&& ($data['pd_master_details'][0]['customer_segment_abbr'] != ''))
{
//echo $data['pd_master_details'][0]['is_score_card_enabled'].'-'.$data['pd_master_details'][0]['customer_segment_abbr'];die();
$data['pd_score'] = $this->calculateScore($pdid);
@ -9695,7 +9695,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-~$_';
$charactersLength = strlen($characters);
$randomString = '!';
$randomString = 'D$';
for ($i = 0; $i < 16; $i++)
{
$randomString .= $characters[rand(0, $charactersLength - 1)];

View File

@ -4284,6 +4284,7 @@ if($total_no_of_business > 0) {
if(isset($covid_value['is_subfield']) && !$covid_value['is_subfield'])
{
echo 'Question : ' . $covid_value['question'].'<br>';
$temp_answer = $credit_officier_specific_queries['covid_section'][ $covid_value['question_key'] ];
if(($covid_value['type'] == 1 || $covid_value['type'] == 9) && ($covid_value['field_type'] == 'str&numtoword' || $covid_value['field_type'] == 'num' || $covid_value['field_type'] == 'numtoword') && is_numeric($temp_answer))
{
$temp_answer = MYUTIL::customIndianNumberFormat($temp_answer) .' ('. MYUTIL::numtowords($temp_answer) .')';

View File

@ -1683,9 +1683,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
foreach ($credit_officier_specific_queries['covid_section']['question_info'] as $covid_key => $covid_value)
{
ifisset($covid_value['is_subfield']) && !$covid_value['is_subfield'])
if(isset($covid_value['is_subfield']) && !$covid_value['is_subfield'])
{
echo 'Question : ' . $covid_value['question'].'<br>';
$temp_answer = $credit_officier_specific_queries['covid_section'][ $covid_value['question_key'] ];
if(($covid_value['type'] == 1 || $covid_value['type'] == 9) && ($covid_value['field_type'] == 'str&numtoword' || $covid_value['field_type'] == 'num' || $covid_value['field_type'] == 'numtoword') && is_numeric($temp_answer))
{
$temp_answer = MYUTIL::customIndianNumberFormat($temp_answer) .' ('. MYUTIL::numtowords($temp_answer) .')';

View File

@ -134,7 +134,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<footer>
<hr>
<img style="width:50px;height:50px;opacity: 0.5;padding-top: 5px;" src='https://pdgenie.com/logo/sineedge_red.png'/> Powered By PD Genie
<img style="width:100px;height:50px;opacity: 0.5;padding-top: 5px;" src='https://pdgenie.com/logo/sineedge_red.png'/> Powered By PD Genie
</footer>
<header>