diff --git a/api/application/views/report_templates/JSONTOREPORT_CLIX.php b/api/application/views/report_templates/JSONTOREPORT_CLIX.php index 8415087f..bbb934e2 100644 --- a/api/application/views/report_templates/JSONTOREPORT_CLIX.php +++ b/api/application/views/report_templates/JSONTOREPORT_CLIX.php @@ -787,6 +787,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited'); if( isset($pd_score) && count($pd_score)) { echo '
'; @@ -854,7 +855,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); $general_captions = array("otp_done" => "OTP authentication done >>","person_met_is_applicant" => "Is person Met, a loan applicant >>","qualification" => "Qualification of Loan Applicants >>","comment_locality" => "Comment on Locality >>","pd_location_approach" => "Approach to PD location >>","customer_behaviour" => "Customer Behaviour >>","neibourhood_check_as_per_pd_officer" => "Neighbourhood check >>","was_the_company_name_board_sighted" => "Business Board Sighted >>","value_of_other_assets" => "Asset Value by Loan Amount % >>"); - $address_type_remarks_caption = array('well_suited' => 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited'); + echo ''; @@ -1748,10 +1749,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
'.$fetchRow['total_per_of_export'].' % of total sales is export.'; - } + // if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports')) + // { + // echo '
'.$fetchRow['total_per_of_export'].' % of total sales is export.
'; + // } ?> @@ -1801,7 +1802,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
- + '.$fetchRow['total_per_of_export'].' % of total sales is export.'; + } + + ?> @@ -2074,7 +2082,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); } $bindBusinessFinancial['working_capital_receive'] = $businessFinancialRow['receive_the_money_in_days']; $bindBusinessFinancial['working_capital_pay'] = $businessFinancialRow['pay_the_money_in_days']; - $bindBusinessFinancial['working_capital_unsold_stock'] = $businessFinancialRow['unsold_stock_lies_in_days'] != "" || $businessFinancialRow['unsold_stock_lies_in_days'] != null ? $businessFinancialRow['unsold_stock_lies_in_days'] : 'Data Not Provided'; + $bindBusinessFinancial['working_capital_unsold_stock'] = is_numeric($businessFinancialRow['unsold_stock_lies_in_days'])? $businessFinancialRow['unsold_stock_lies_in_days'] : 'Data Not Provided'; $bindBusinessFinancial['is_working_capital_facility'] = $businessFinancialRow['is_there_working_capital_available']; if(isset($businessFinancialRow['select_working_capital_facilities_availed'])) { diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php index f029c984..e0cd60fb 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php @@ -804,6 +804,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited'); //die(); if( isset($pd_score) && count($pd_score)) { @@ -872,7 +873,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); $general_captions = array("otp_done" => "OTP authentication done >>","person_met_is_applicant" => "Is person Met, a loan applicant >>","qualification" => "Qualification of Loan Applicants >>","comment_locality" => "Comment on Locality >>","pd_location_approach" => "Approach to PD location >>","customer_behaviour" => "Customer Behaviour >>","neibourhood_check_as_per_pd_officer" => "Neighbourhood check >>","was_the_company_name_board_sighted" => "Business Board Sighted >>","value_of_other_assets" => "Asset Value by Loan Amount % >>"); - $address_type_remarks_caption = array('well_suited' => 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited'); + echo ''; @@ -896,6 +897,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); // echo $per >= 80 ? 'rcorners_green' : 'SOME'; // die(); // } + if($bsk == 'location_suited_for_busienss') { $answer = $address_type_remarks_caption[ $business_score['answer'] ]; @@ -969,7 +971,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); $address_form = json_decode($pd_processed_forms[5][0]['processed_json'],true); //print_r($address_form); $final_remark_data = json_decode($pd_processed_forms[20][0]['processed_json'],true) ; - + //print_r($address_form); $business_assets_details = json_decode($pd_processed_forms[22][0]['processed_json'],true); //print_r($business_assets_details);die(); @@ -1098,9 +1100,9 @@ defined('BASEPATH') OR exit('No direct script access allowed'); 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.'; echo '

The PD officer also made the following observations:' ; echo '
- +
'.$fetchRow['total_per_of_export'].' % of total sales is export.
'; + } + + ?> @@ -2121,7 +2127,7 @@ if($total_no_of_business > 0) { } $bindBusinessFinancial['working_capital_receive'] = $businessFinancialRow['receive_the_money_in_days']; $bindBusinessFinancial['working_capital_pay'] = $businessFinancialRow['pay_the_money_in_days']; - $bindBusinessFinancial['working_capital_unsold_stock'] = $businessFinancialRow['unsold_stock_lies_in_days'] != "" || $businessFinancialRow['unsold_stock_lies_in_days'] != null ? $businessFinancialRow['unsold_stock_lies_in_days'] : 'Data Not Provided'; + $bindBusinessFinancial['working_capital_unsold_stock'] = is_numeric($businessFinancialRow['unsold_stock_lies_in_days']) ? $businessFinancialRow['unsold_stock_lies_in_days'] : 'Data Not Provided'; $bindBusinessFinancial['is_working_capital_facility'] = $businessFinancialRow['is_there_working_capital_available']; if(isset($businessFinancialRow['select_working_capital_facilities_availed'])) { diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI_ADDON.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI_ADDON.php index 79d8aaeb..df47f6f0 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI_ADDON.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI_ADDON.php @@ -1063,6 +1063,8 @@ defined('BASEPATH') OR exit('No direct script access allowed'); 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited'); + if( isset($pd_score) && count($pd_score)) { echo '
'; @@ -1130,7 +1132,6 @@ defined('BASEPATH') OR exit('No direct script access allowed'); $general_captions = array("otp_done" => "OTP authentication done >>","person_met_is_applicant" => "Is person Met, a loan applicant >>","qualification" => "Qualification of Loan Applicants >>","comment_locality" => "Comment on Locality >>","pd_location_approach" => "Approach to PD location >>","customer_behaviour" => "Customer Behaviour >>","neibourhood_check_as_per_pd_officer" => "Neighbourhood check >>","was_the_company_name_board_sighted" => "Business Board Sighted >>","value_of_other_assets" => "Asset Value by Loan Amount % >>"); - $address_type_remarks_caption = array('well_suited' => 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited'); echo ''; @@ -2054,10 +2055,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
'.$fetchRow['total_per_of_export'].' % of total sales is export.'; - } + // if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports')) + // { + // echo '
'.$fetchRow['total_per_of_export'].' % of total sales is export.
'; + // } ?> @@ -2107,7 +2108,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
- +
'.$fetchRow['total_per_of_export'].' % of total sales is export.
'; + } + ?> @@ -2127,7 +2134,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); echo ' Name of the Financial Insitution TID Number of POS machine '; foreach($fetchRow['pos_machines_details'] as $pos) { - echo ' '.$pos['pos_machines_financial_institution_name'].' '.$pos['tid_no_of_pos_machine'].' '; + echo ' '.($pos['pos_machines_financial_institution_name'] ? $pos['pos_machines_financial_institution_name'] : 'Not Provided').' '.$pos['tid_no_of_pos_machine'].' '; } echo ''; } @@ -2371,7 +2378,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); } $bindBusinessFinancial['working_capital_receive'] = $businessFinancialRow['receive_the_money_in_days']; $bindBusinessFinancial['working_capital_pay'] = $businessFinancialRow['pay_the_money_in_days']; - $bindBusinessFinancial['working_capital_unsold_stock'] = $businessFinancialRow['unsold_stock_lies_in_days'] != "" || $businessFinancialRow['unsold_stock_lies_in_days'] != null ? $businessFinancialRow['unsold_stock_lies_in_days'] : 'Data Not Provided'; + $bindBusinessFinancial['working_capital_unsold_stock'] = is_numeric($businessFinancialRow['unsold_stock_lies_in_days'])? $businessFinancialRow['unsold_stock_lies_in_days'] : 'Data Not Provided'; $bindBusinessFinancial['is_working_capital_facility'] = $businessFinancialRow['is_there_working_capital_available']; if(isset($businessFinancialRow['select_working_capital_facilities_availed'])) {