From 57b98a2676cba400ec72ccb32b68c0eed2c52aa9 Mon Sep 17 00:00:00 2001 From: Velz2020 Date: Wed, 30 Sep 2020 14:25:42 +0530 Subject: [PATCH] SMART PD REPORT MINOR CHANGES --- .../JSONTOREPORT_DI_AI_SMARTPD.php | 21 ++++++++++--------- .../JSONTOREPORT_SAL_SMARTPD.php | 16 ++++++++------ 2 files changed, 21 insertions(+), 16 deletions(-) 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 687eedb1..c9dabf5f 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php @@ -4755,6 +4755,7 @@ if($total_no_of_business > 0) { } + ?> @@ -4769,23 +4770,23 @@ if($total_no_of_business > 0) { $vendor_gen_section_text = vendor_form::getVendorGeneralSectionContent($vendor_form_json['questions'][0]); echo "

$vendor_gen_section_text

"; - echo '

Address Section

'; + echo '

Address Section

'; $vendor_address_section = $vendor_form_json['questions'][1]; $address_content = vendor_form::getVendoraddressSectionContent($vendor_address_section); echo "

Field Visit Initiated Address: ".$vendor_address_section['address'].", ". $address_content['initiated_address']['city_name'] .", ".$address_content['initiated_address']['state_name']." - ".$address_content['initiated_address']['pincode']."

"; if(!$vendor_address_section['is_pd_done_on_initiated_address']) { echo "

Field Visit Actual Visited Address: ".$vendor_address_section['alternative_addresses'][0]['alternative_address'].", ". $address_content['actual_address']['city_name'] .", ".$address_content['actual_address']['state_name']." - ".$address_content['actual_address']['pincode']."

"; - echo "

Reasaon: ".$vendor_address_section['alternative_addresses'][0]['reason_for_alternative_address']."

"; + echo "

Reason: ".$vendor_address_section['alternative_addresses'][0]['reason_for_alternative_address']."

"; } $locality = preg_match("/^[aeiouAEIOU]/U", $address_content['comment_locality']) ? 'an '.$address_content['comment_locality'] : 'a '.$address_content['comment_locality']; echo "

The Field Visit was done at ".$address_content['address_type']." of the loan applicants. The ".$address_content['address_type']." is located in a ".$address_content['address_locality']." and the estimated area of the ".$address_content['address_type']." is ".$vendor_address_section['estimated_area']." ". $address_content['uom'].". The location was ".$address_content['pd_location_approach'].". As Per Officer, the ".$address_content['address_type']." is situated in $locality Locality.

"; - echo '

Business information

'; + echo '

Business information

'; $vendor_business_info = $vendor_form_json['questions'][2]['business_group'][0]; - echo $emp = $vendor_business_info['officer_total'] > 0 ? "

At the time of Field Visit , ".$vendor_business_info['officer_total']." employees sighted at the visited premises.

" : "

At the time of Field Visit visit, no employees sighted at the visited premises.

"; + echo $emp = $vendor_business_info['officer_total'] > 0 ? "

At the time of Field Visit , ".$vendor_business_info['officer_total']." employees sighted at the visited premises.

" : "

At the time of Field Visit, no employees sighted at the visited premises.

"; echo $name_board = $vendor_business_info['was_the_company_name_board_sighted'] == 'yes' ? "

The Business Name board was seen at the visited premises.

" : "

The Business Name board was not seen at the visited premises.

"; @@ -4799,21 +4800,21 @@ if($total_no_of_business > 0) { } $were = count($vendor_business_info['documents_info']) == 1 ? 'was' : 'were'; $doc_names = substr_replace($doc_names,' ',-2); - echo "

$doc_names $were sighted during Field Visit visit and photographs available in zipped file enclosed with report.

"; + echo "

$doc_names $were sighted during Field Visit and photographs available in zipped file enclosed with report.

"; } else { - echo '

No Documents were sighted during Field Visit visit.

'; + echo '

No Documents were sighted during Field Visit.

'; } $vendor_business_asset_info = $vendor_form_json['questions'][2]['business_group'][1]; - echo $vendor_business_asset_info['business_is_pd_visited'] == 'yes' ? '

Business Activity was seen during Field visit

': '

Business Activity was not seen during Field Visit visit.

'; + echo $vendor_business_asset_info['business_is_pd_visited'] == 'yes' ? '

Business Activity was seen during Field visit

': '

Business Activity was not seen during Field Visit.

'; $vendor_stock_info = $vendor_form_json['questions'][2]['business_group'][2]; - echo $vendor_stock_info['is_stock_photo'] == 'yes' ? '

Stock was observed during Field visit and photographs available in zipped file enclosed with report.

': '

No Stock was observed during Field Visit visit.

'; + echo $vendor_stock_info['is_stock_photo'] == 'yes' ? '

Stock was observed during Field visit and photographs available in zipped file enclosed with report.

': '

No Stock was observed during Field Visit.

'; - echo $vendor_business_asset_info['business_asset_sight'] == 'yes' ? '

Business Assets were sighted during Field visit and photographs available in zipped file enclosed with report.

': '

No Business Assets were sighted during Field Visit visit.

'; + echo $vendor_business_asset_info['business_asset_sight'] == 'yes' ? '

Business Assets were sighted during Field visit and photographs available in zipped file enclosed with report.

': '

No Business Assets were sighted during Field Visit.

'; echo "

During Field visit, officer clicked office/Name board/Entrance photographs and same is available in zipped folder attached with report.

"; echo '

Credit Manager Special Requests:


'; @@ -4829,7 +4830,7 @@ if($total_no_of_business > 0) { } } - echo '

Neighbourhood Check Details


'; + echo '

Neighbourhood Check Details


'; $vendor_neighbour = $vendor_form_json['questions'][3]; $existNeighRefCheck=array(); diff --git a/api/application/views/report_templates/JSONTOREPORT_SAL_SMARTPD.php b/api/application/views/report_templates/JSONTOREPORT_SAL_SMARTPD.php index 2ad7d20c..a401e0ed 100644 --- a/api/application/views/report_templates/JSONTOREPORT_SAL_SMARTPD.php +++ b/api/application/views/report_templates/JSONTOREPORT_SAL_SMARTPD.php @@ -2021,7 +2021,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); echo "

$vendor_gen_section_text

"; - echo '

Employer information

'; + echo '

Employer information

'; $vendor_employer_info = $vendor_form_json['questions'][2]; if(array_key_exists('employer_details',$vendor_employer_info)) @@ -2029,8 +2029,8 @@ defined('BASEPATH') OR exit('No direct script access allowed'); $employer_details = $vendor_employer_info['employer_details']; $vendor_emp_master = vendor_form::getVendorEmpSectionContent($vendor_employer_info); echo '

During Field visit,'. $employer_details['name_person_met'] .' ( '.substr_replace($vendor_emp_master,'',-3) .' ) was met at the visited premises.

'; - echo '

Employer’s/Manager’s Company ID card / Visiting Card was photographed during Field Visit visit.

'; - echo '

Salary amount was confirmed by person met during Field Visit visit. Applicant gets monthly gross salary of ₹ '.$employer_details['gross_monthly_salary'].' and net monthly salary of ₹'.$employer_details['net_monthly_salary'].'.

'; + echo '

Employer’s/Manager’s Company ID card / Visiting Card was photographed during Field Visit.

'; + echo '

Salary amount was confirmed by person met during Field Visit. Applicant gets monthly gross salary of ₹ '.$employer_details['gross_monthly_salary'].' and net monthly salary of ₹'.$employer_details['net_monthly_salary'].'.

'; echo '

Salary paid to the applicant between '. MYUTIL::addOrdinalNumberSuffix($employer_details['from_date_the_salary_is_rcv']).' to ' . MYUTIL::addOrdinalNumberSuffix($employer_details['to_date_the_salary_is_rcv']).' of every month via '.$salary_mode_text [ $employer_details['mode_of_getting_salary'] ].'.

'; $time = $employer_details['how_long_year'].' year(s)'; $time .= ($employer_details['how_long_year'] ? ' and '.$employer_details['how_long_year'] .' month(s)': ''); echo '

During Field Visit, Employer confirmed that the applicant has served '.$time.' an employee in this firm / company.

'; @@ -2049,7 +2049,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); $document_name = ''; $document_name .= ($vendor_employer_info['docs_sighted']['sal_reg_seen'] == 'yes' ? 'Salary Register, ': ''); $document_name .= ($vendor_employer_info['docs_sighted']['attendance_seen'] == 'yes' ? 'Attendance Register, ' : ''); - $document_name .= ($vendor_employer_info['docs_sighted']['cash_voucher'] == 'yes'? 'Cash Vouche, r' : ''); + $document_name .= ($vendor_employer_info['docs_sighted']['cash_voucher'] == 'yes'? 'Cash Voucher,' : ''); $document_name .= ($vendor_employer_info['docs_sighted']['sal_certificate'] == 'yes' ? 'Salary Certificate, ' : ''); $document_name .= ($vendor_employer_info['docs_sighted']['sal_slip'] == 'yes' ? 'Salary Slip, ': ''); $document_name .= ($vendor_employer_info['docs_sighted']['other_doc'] == 'yes' ? $vendor_employer_info['docs_sighted']['other_doc_name'].', ' : ''); @@ -2070,7 +2070,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); $vendor_credit_manager_info = $vendor_form_json['questions'][6]; if(count($vendor_credit_manager_info['docs_to_be_sighted'])) { - echo '

Credit Manager Special Requests:


'; + echo '

Credit Manager Special Requests:


'; foreach ($vendor_credit_manager_info['docs_to_be_sighted'] as $cm_key => $cm_value) { echo 'Document Required:'.$cm_value['placeholder'].'
'; @@ -2081,7 +2081,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); } - echo '

Address Section

'; + echo '

Address Section

'; $vendor_address_section = $vendor_form_json['questions'][1]; $address_content = vendor_form::getVendoraddressSectionContent($vendor_address_section,2); echo "

Field Visit Initiated Address: ".$vendor_address_section['address'].", ". $address_content['initiated_address']['city_name'] .", ".$address_content['initiated_address']['state_name']." - ".$address_content['initiated_address']['pincode']."

"; @@ -2106,6 +2106,10 @@ defined('BASEPATH') OR exit('No direct script access allowed'); $time .= ( $vendoe_final_remars['company_existence_months'] ? $vendoe_final_remars['company_existence_months'].' month(s)' : ''); echo $time; } + else + { + echo '

Existence of organization/office was not confirmed by neighbour.

'; + } echo '


';