diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php index 9daabac3..a7281604 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php @@ -1,5 +1,6 @@ @@ -545,7 +546,7 @@ if ( isset($pdf) ) { echo 'PD Visit Date : '.$pd_master_details[0]['pd_visit_date'].''; echo 'PD Report Date : '.$pd_master_details[0]['pd_report_generated_date'].''; echo 'PD Initiated by : '.$pd_master_details[0]['branch_name'].' Branch'; - echo 'Loan Application ID : '.$pd_master_details[0]['lender_applicant_id'].''; + echo ''.$loan_word.' Application ID : '.$pd_master_details[0]['lender_applicant_id'].''; echo 'Product : '.$pd_master_details[0]['product_name'].''; echo 'Customer Segment : '.(explode('-',$pd_master_details[0]['customer_segment_name'])[0]).''; ?> @@ -555,7 +556,7 @@ if ( isset($pdf) ) { Loan Amount Applied For :

"; //echo ' - echo ''; + echo ''; echo '
Loan Amount
(As Per PD Initiation)
: ' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '
('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')
Loan Amount
(As Per Loan Applicants during PD)
: ' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '
('. MYUTIL::numtowords($loan_form['loan_amount']) .')
'.$loan_word.' Amount
(As Per PD Initiation)
: ' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '
('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')
'.$loan_word.' Amount
(As Per '.$loan_word.' Applicants during PD)
: ' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '
('. MYUTIL::numtowords($loan_form['loan_amount']) .')
'; //echo "
"; echo "

"; @@ -711,7 +712,7 @@ if ( isset($pdf) ) {
-

Loan Applicants:

+

Applicants:

@@ -1127,7 +1128,7 @@ if ( isset($pdf) ) { if($business_assets_details['business_assets_for_address'][0]['business_month'] != ""){ $yrs_being_run.= ' and '.$business_assets_details['business_assets_for_address'][0]['business_month'].' Months';} echo '

'; - echo 'The PD visit was done at '. $address_type. 'Address Form - Type of Address of the loan applicants.'; + echo 'The PD visit was done at '. $address_type. 'Address Form - Type of Address of the '.strtolower($loan_word).' applicants.'; echo 'The '.$address_type.'Address Form - Type of Address is '.$property_owner_type.'Business Assest Form - Owner of the Property and the business has been in operation from here for the last '.$yrs_being_run.'Business Assest Form - Business running Yrs in this premise .'; echo '

The '.$address_type.'Address Form - Type of Address is located in '.$locality.'Address Form - Locality of Address '.($estimated_area != 0? 'and the estimated area of the '.$address_type.'Address Form - Type of Address is '.$estimated_area.'Address Form - Estimated Area .' : ''); echo '

The PD location was '. $pd_address['pd_location_master'].'Address Form - Approach to PD location . ' . 'As Per PD Officer, the '.$address_type .'Address Form - Type of Address is situated in '.$comment_locality_master .'Address Form - Comment on locality Locality.'; @@ -1225,12 +1226,12 @@ if ( isset($pdf) ) { -

LOAN DETAILS:

+

DETAILS:

During the PD visit, person met provide the following information about loan applied for:'; + echo 'During the PD visit, person met provide the following information about '.strtolower($loan_word).' applied for:'; $is_current_product_bl = $pd_master_details[0]['prod_catagory'] == "BL" ? true: false; $is_current_product_lab = $pd_master_details[0]['prod_catagory'] == "LAP" ? true: false; @@ -1241,13 +1242,13 @@ if ( isset($pdf) ) { // die(); $loan_table_dispaly_rows = array(); - $loan_table_dispaly_rows[] = array('particulars' => 'Total Loan Amount applied for','details' => ""." ".$loan_amount.' ('.MYUTIL::numtowords($loan_form['loan_amount']).')'); + $loan_table_dispaly_rows[] = array('particulars' => ('Total '.$loan_word.' Amount applied for'),'details' => ""." ".$loan_amount.' ('.MYUTIL::numtowords($loan_form['loan_amount']).')'); if(($is_current_product_bl || $is_current_product_laep) && $pd_master_details[0]['lender_short_name'] != 'UDAAN') { $to_dispaly = !strcasecmp($loan_form['is_there_total_fund'], 'yes disclose') ? ('Disclosed '.""." ".MYUTIL::customIndianNumberFormat($loan_form['fund_amt']).' ('.MYUTIL::numtowords($loan_form['fund_amt']).')'):'Not Disclosed'; $loan_table_dispaly_rows[] = array('particulars' => 'Total Fund Requirement','details' => $to_dispaly); } - $loan_table_dispaly_rows[] = array('particulars' => 'Loan Tenure expected','details' => $loan_form['loan_tenure'] != "" ? $loan_form['loan_tenure'].' Months' : 'Not provided'); + $loan_table_dispaly_rows[] = array('particulars' => ($loan_word.' Tenure expected'),'details' => $loan_form['loan_tenure'] != "" ? $loan_form['loan_tenure'].' Months' : 'Not provided'); $end_use = ''; $to_remove_for = false; @@ -1272,7 +1273,7 @@ if ( isset($pdf) ) { } } - $loan_table_dispaly_rows[] = array('particulars' => 'Loan Purpose','details' => $end_use); + $loan_table_dispaly_rows[] = array('particulars' => ($loan_word.' Purpose'),'details' => $end_use); if(strcasecmp($loan_form['is_transfer'],'no')) { @@ -1356,7 +1357,7 @@ if ( isset($pdf) ) { ?>

Name Age
(Yrs/Mns)
Qualification / Type of Entity Relationships
- + $row) @@ -2298,7 +2299,7 @@ if($total_no_of_business > 0) { } - else { if($pd_master_details[0]['fk_pd_type'] == 1) { echo "

Financial statements not provided by Loan Applicants to PD officer.

";} } + else { if($pd_master_details[0]['fk_pd_type'] == 1) { echo "

Financial statements not provided by ".$loan_word." Applicants to PD officer.

";} } ?> @@ -2317,7 +2318,7 @@ if($total_no_of_business > 0) { -

As per Loan Applicant(s) met, the Financials are as below:

+

As per Applicant(s) met, the Financials are as below:

S.No Loan Particulars Loan Particular Details
S.No Particulars Particular Details
@@ -3908,7 +3909,7 @@ if($total_no_of_business > 0) { - + @@ -4019,7 +4020,7 @@ if($total_no_of_business > 0) { } ?>
-

Other Sources of Income of Individual Loan Applicants:

+

Other Sources of Income of Individual Applicants:

diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php index 92d4cac6..38e8446f 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php @@ -1,5 +1,6 @@ @@ -552,7 +553,7 @@ if ( isset($pdf) ) { echo ''; echo ''; echo ''; - echo ''; + echo ''; echo ''; echo ''; ?> @@ -562,7 +563,7 @@ if ( isset($pdf) ) { Loan Amount Applied For :

"; //echo '
Asset Owned By Approx Market Value(Rs) Age of the AssestLoan Again Assest Again Assest
PD Visit Date : '.$pd_master_details[0]['pd_visit_date'].'
PD Report Date : '.$pd_master_details[0]['pd_report_generated_date'].'
PD Initiated by : '.$pd_master_details[0]['branch_name'].' Branch
Loan Application ID : '.$pd_master_details[0]['lender_applicant_id'].'
'.$loan_word.' Application ID : '.$pd_master_details[0]['lender_applicant_id'].'
Product : '.$pd_master_details[0]['product_name'].'
Customer Segment : '.(explode('-',$pd_master_details[0]['customer_segment_name'])[0]).'
- echo ''; + echo ''; echo '
Loan Amount
(As Per PD Initiation)
: ' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '
('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')
Loan Amount
(As Per Loan Applicants during PD)
: ' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '
('. MYUTIL::numtowords($loan_form['loan_amount']) .')
'.$loan_word.' Amount
(As Per PD Initiation)
: ' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '
('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')
'.$loan_word.' Amount
(As Per '.$loan_word.' Applicants during PD)
: ' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '
('. MYUTIL::numtowords($loan_form['loan_amount']) .')
'; //echo "
"; echo "

"; @@ -715,7 +716,7 @@ if ( isset($pdf) ) {
-

Loan Applicants:

+

Applicants:

@@ -1124,7 +1125,7 @@ if ( isset($pdf) ) { if($business_assets_details['business_assets_for_address'][0]['business_month'] != ""){ $yrs_being_run.= ' and '.$business_assets_details['business_assets_for_address'][0]['business_month'].' Months';} echo '

'; - echo 'The PD visit was done at '. $address_type. 'Address Form - Type of Address of the loan applicants.'; + echo 'The PD visit was done at '. $address_type. 'Address Form - Type of Address of the '.strtolower($loan_word).' applicants.'; echo 'The '.$address_type.'Address Form - Type of Address is '.$property_owner_type.'Business Assest Form - Owner of the Property and the business has been in operation from here for the last '.$yrs_being_run.'Business Assest Form - Business running Yrs in this premise .'; echo '

The '.$address_type.'Address Form - Type of Address is located in '.$locality.'Address Form - Locality of Address '.($estimated_area != 0? 'and the estimated area of the '.$address_type.'Address Form - Type of Address is '.$estimated_area.'Address Form - Estimated Area .' : ''); echo '

The PD location was '. $pd_address['pd_location_master'].'Address Form - Approach to PD location . ' . 'As Per PD Officer, the '.$address_type .'Address Form - Type of Address is situated in '.$comment_locality_master .'Address Form - Comment on locality Locality.'; @@ -1222,7 +1223,7 @@ if ( isset($pdf) ) { -

LOAN DETAILS:

+

DETAILS:

'Total Loan Amount applied for','details' => ""." ".$loan_amount.' ('.MYUTIL::numtowords($loan_form['loan_amount']).')'); + $loan_table_dispaly_rows[] = array('particulars' => ('Total '.$loan_word.' Amount applied for'),'details' => ""." ".$loan_amount.' ('.MYUTIL::numtowords($loan_form['loan_amount']).')'); if(($is_current_product_bl || $is_current_product_laep) && $pd_master_details[0]['lender_short_name'] != 'UDAAN') { $to_dispaly = !strcasecmp($loan_form['is_there_total_fund'], 'yes disclose') ? ('Disclosed '.""." ".MYUTIL::customIndianNumberFormat($loan_form['fund_amt']).' ('.MYUTIL::numtowords($loan_form['fund_amt']).')'):'Not Disclosed'; $loan_table_dispaly_rows[] = array('particulars' => 'Total Fund Requirement','details' => $to_dispaly); } - $loan_table_dispaly_rows[] = array('particulars' => 'Loan Tenure expected','details' => $loan_form['loan_tenure'] != "" ? $loan_form['loan_tenure'].' Months' : 'Not provided'); + $loan_table_dispaly_rows[] = array('particulars' => ($loan_word.' Tenure expected'),'details' => $loan_form['loan_tenure'] != "" ? $loan_form['loan_tenure'].' Months' : 'Not provided'); $end_use = ''; $to_remove_for = false; @@ -1269,7 +1270,7 @@ if ( isset($pdf) ) { } } - $loan_table_dispaly_rows[] = array('particulars' => 'Loan Purpose','details' => $end_use); + $loan_table_dispaly_rows[] = array('particulars' => ($loan_word.' Purpose'),'details' => $end_use); if(strcasecmp($loan_form['is_transfer'],'no')) { @@ -1353,7 +1354,7 @@ if ( isset($pdf) ) { ?>

Name Age
(Yrs/Mns)
Qualification / Type of Entity Relationships
- + $row) @@ -2295,7 +2296,7 @@ if($total_no_of_business > 0) { } - else { if($pd_master_details[0]['fk_pd_type'] == 1) { echo "

Financial statements not provided by Loan Applicants to PD officer.

";} } + else { if($pd_master_details[0]['fk_pd_type'] == 1) { echo "

Financial statements not provided by ".$loan_word." Applicants to PD officer.

";} } ?> @@ -2314,7 +2315,7 @@ if($total_no_of_business > 0) { -

As per Loan Applicant(s) met, the Financials are as below:

+

As per Applicant(s) met, the Financials are as below:

S.No Loan Particulars Loan Particular Details
S.No Particulars Particular Details
@@ -3905,7 +3906,7 @@ if($total_no_of_business > 0) { - + @@ -4016,7 +4017,7 @@ if($total_no_of_business > 0) { } ?>
-

Other Sources of Income of Individual Loan Applicants:

+

Other Sources of Income of Individual Applicants:

diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php index 7eda4ee5..a9218d9d 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php @@ -1,5 +1,6 @@ @@ -547,7 +548,7 @@ if ( isset($pdf) ) { echo ''; echo ''; echo ''; - echo ''; + echo ''; echo ''; echo ''; ?> @@ -557,7 +558,7 @@ if ( isset($pdf) ) { Loan Amount Applied For :

"; //echo '
Asset Owned By Approx Market Value(Rs) Age of the AssestLoan Again Assest Again Assest
PD Report Date : '.$pd_master_details[0]['pd_report_generated_date'].'
PD Initiated by : '.$pd_master_details[0]['branch_name'].' Branch
PD Type : Telephonic
Loan Application ID : '.$pd_master_details[0]['lender_applicant_id'].'
'.$loan_word.' Application ID : '.$pd_master_details[0]['lender_applicant_id'].'
Product : '.$pd_master_details[0]['product_name'].'
Customer Segment : '.(explode('-',$pd_master_details[0]['customer_segment_name'])[0]).'
- echo ''; + echo ''; echo '
Loan Amount
(As Per PD Initiation)
: ' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '
('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')
Loan Amount
(As Per Loan Applicants during PD)
: ' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '
('. MYUTIL::numtowords($loan_form['loan_amount']) .')
'.$loan_word.' Amount
(As Per PD Initiation)
: ' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '
('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')
'.$loan_word.' Amount
(As Per '.$loan_word.' Applicants during PD)
: ' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '
('. MYUTIL::numtowords($loan_form['loan_amount']) .')
'; //echo "
"; echo "

"; @@ -713,7 +714,7 @@ if ( isset($pdf) ) {
-

Loan Applicants:

+

Applicants:

@@ -1119,7 +1120,7 @@ if ( isset($pdf) ) { if($business_assets_details['business_assets_for_address'][0]['business_month'] != ""){ $yrs_being_run.= ' and '.$business_assets_details['business_assets_for_address'][0]['business_month'].' Months';} echo '

'; - echo 'The PD was telephonically done with the loan applicant(s) at '. $address_type. 'Address Form - Type of Address . '; + echo 'The PD was telephonically done with the '.strtolower($loan_word).' applicant(s) at '. $address_type. 'Address Form - Type of Address . '; echo 'The '.$address_type.'Address Form - Type of Address is '.$property_owner_type.'Business Assest Form - Owner of the Property and the business has been in operation from here for the last '.$yrs_being_run.'Business Assest Form - Business running Yrs in this premise .'; echo '

The '.$address_type.'Address Form - Type of Address is located in '.$locality.'Address Form - Locality of Address '.($estimated_area != 0? 'and the estimated area of the '.$address_type.'Address Form - Type of Address is '.$estimated_area.'Address Form - Estimated Area .' : ''); // echo '

The PD location was '. $pd_address['pd_location_master'].'Address Form - Approach to PD location . ' . 'As Per PD Officer, the '.$address_type .'Address Form - Type of Address is situated in '.$comment_locality_master .'Address Form - Comment on locality Locality.'; @@ -1229,7 +1230,7 @@ if ( isset($pdf) ) { -

LOAN DETAILS:

+

DETAILS:

'Total Loan Amount applied for','details' => ""." ".$loan_amount.' ('.MYUTIL::numtowords($loan_form['loan_amount']).')'); + $loan_table_dispaly_rows[] = array('particulars' => ('Total '.$loan_word.' Amount applied for'),'details' => ""." ".$loan_amount.' ('.MYUTIL::numtowords($loan_form['loan_amount']).')'); if($is_current_product_bl || $is_current_product_laep) { $to_dispaly = !strcasecmp($loan_form['is_there_total_fund'], 'yes disclose') ? ('Disclosed '.""." ".MYUTIL::customIndianNumberFormat($loan_form['fund_amt']).' ('.MYUTIL::numtowords($loan_form['fund_amt']).')'):'Not Disclosed'; $loan_table_dispaly_rows[] = array('particulars' => 'Total Fund Requirement','details' => $to_dispaly); } - $loan_table_dispaly_rows[] = array('particulars' => 'Loan Tenure expected','details' => $loan_form['loan_tenure'] != "" ? $loan_form['loan_tenure'].' Months' : 'Not provided'); + $loan_table_dispaly_rows[] = array('particulars' => ($loan_word.' Tenure expected'),'details' => $loan_form['loan_tenure'] != "" ? $loan_form['loan_tenure'].' Months' : 'Not provided'); $end_use = ''; $to_remove_for = false; @@ -1276,7 +1277,7 @@ if ( isset($pdf) ) { } } - $loan_table_dispaly_rows[] = array('particulars' => 'Loan Purpose','details' => $end_use); + $loan_table_dispaly_rows[] = array('particulars' => ($loan_word.' Purpose'),'details' => $end_use); if(strcasecmp($loan_form['is_transfer'],'no')) { @@ -1357,7 +1358,7 @@ if ( isset($pdf) ) { ?>

Name Age
(Yrs/Mns)
Qualification / Type of Entity Relationships
- + $row) @@ -2319,7 +2320,7 @@ if($total_no_of_business > 0) { -

As per Loan Applicant(s), the Financials are as below:

+

As per Applicant(s), the Financials are as below:

S.No Loan Particulars Loan Particular Details
S.No Particulars Particular Details
@@ -3907,7 +3908,7 @@ if($total_no_of_business > 0) { - + @@ -4018,7 +4019,7 @@ if($total_no_of_business > 0) { } ?>
-

Other Sources of Income of Individual Loan Applicants:

+

Other Sources of Income of Individual Applicants:

diff --git a/api/application/views/smc_creditpd_reports/MWISE.php b/api/application/views/smc_creditpd_reports/MWISE.php index f4a6b8bc..91bfcebd 100644 --- a/api/application/views/smc_creditpd_reports/MWISE.php +++ b/api/application/views/smc_creditpd_reports/MWISE.php @@ -979,7 +979,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re ?> - + $fy_value)
Asset Owned By Approx Market Value(Rs) Age of the AssestLoan Again Assest Again Assest
Debtor days Creditor Days