PROD REPORT ISSUES FIXED 3 TEMPLATES

This commit is contained in:
Velz2020 2019-11-18 18:39:03 +05:30
parent b311c331ae
commit f4e1642545
3 changed files with 46 additions and 25 deletions

View File

@ -787,6 +787,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<!-- ########################### Score Card Section ############################################### --> <!-- ########################### Score Card Section ############################################### -->
<?php <?php
//print_r($pd_score);die(); //print_r($pd_score);die();
$address_type_remarks_caption = array('well_suited' => 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited');
if( isset($pd_score) && count($pd_score)) if( isset($pd_score) && count($pd_score))
{ {
echo '<div id="page_break"> </div>'; echo '<div id="page_break"> </div>';
@ -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 % >>"); $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 '<table class="mini_scorecard_table">'; echo '<table class="mini_scorecard_table">';
@ -1748,10 +1749,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php if(array_key_exists('both_sales_done',$wholesaleRow)) { ?> <?php if(array_key_exists('both_sales_done',$wholesaleRow)) { ?>
<div><?php echo $wholesaleRow['both_sales_done'] ?></div> <div><?php echo $wholesaleRow['both_sales_done'] ?></div>
<?php } <?php }
if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports')) // if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports'))
{ // {
echo '<div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>'; // echo '<div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>';
} // }
?> ?>
</td> </td>
@ -1801,7 +1802,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php } ?> <?php } ?>
</tbody> </tbody>
</table> </table>
<?php } ?> <?php }
if(is_numeric($fetchRow['total_per_of_export']))
{
echo '<div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>';
}
?>
<!-- end other avtivity --> <!-- end other avtivity -->
@ -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_receive'] = $businessFinancialRow['receive_the_money_in_days'];
$bindBusinessFinancial['working_capital_pay'] = $businessFinancialRow['pay_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']; $bindBusinessFinancial['is_working_capital_facility'] = $businessFinancialRow['is_there_working_capital_available'];
if(isset($businessFinancialRow['select_working_capital_facilities_availed'])) if(isset($businessFinancialRow['select_working_capital_facilities_availed']))
{ {

View File

@ -804,6 +804,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<!-- ########################### Score Card Section ############################################### --> <!-- ########################### Score Card Section ############################################### -->
<?php <?php
//print_r($pd_score);die(); //print_r($pd_score);die();
$address_type_remarks_caption = array('well_suited' => 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited');
//die(); //die();
if( isset($pd_score) && count($pd_score)) 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 % >>"); $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 '<table class="mini_scorecard_table">'; echo '<table class="mini_scorecard_table">';
@ -896,6 +897,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
// echo $per >= 80 ? 'rcorners_green' : 'SOME'; // echo $per >= 80 ? 'rcorners_green' : 'SOME';
// die(); // die();
// } // }
if($bsk == 'location_suited_for_busienss') if($bsk == 'location_suited_for_busienss')
{ {
$answer = $address_type_remarks_caption[ $business_score['answer'] ]; $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); $address_form = json_decode($pd_processed_forms[5][0]['processed_json'],true);
//print_r($address_form); //print_r($address_form);
$final_remark_data = json_decode($pd_processed_forms[20][0]['processed_json'],true) ; $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); $business_assets_details = json_decode($pd_processed_forms[22][0]['processed_json'],true);
//print_r($business_assets_details);die(); //print_r($business_assets_details);die();
@ -1794,10 +1796,8 @@ if($total_no_of_business > 0) {
<?php if(array_key_exists('both_sales_done',$wholesaleRow)) { ?> <?php if(array_key_exists('both_sales_done',$wholesaleRow)) { ?>
<div><?php echo $wholesaleRow['both_sales_done'] ?></div> <div><?php echo $wholesaleRow['both_sales_done'] ?></div>
<?php } <?php }
if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports')) //if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports'))
{
echo '<div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>';
}
?> ?>
</td> </td>
@ -1847,7 +1847,13 @@ if($total_no_of_business > 0) {
<?php } ?> <?php } ?>
</tbody> </tbody>
</table> </table>
<?php } ?> <?php }
if(is_numeric($fetchRow['total_per_of_export']))
{
echo '<br><div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>';
}
?>
<!-- end other avtivity --> <!-- end other avtivity -->
@ -2121,7 +2127,7 @@ if($total_no_of_business > 0) {
} }
$bindBusinessFinancial['working_capital_receive'] = $businessFinancialRow['receive_the_money_in_days']; $bindBusinessFinancial['working_capital_receive'] = $businessFinancialRow['receive_the_money_in_days'];
$bindBusinessFinancial['working_capital_pay'] = $businessFinancialRow['pay_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']; $bindBusinessFinancial['is_working_capital_facility'] = $businessFinancialRow['is_there_working_capital_available'];
if(isset($businessFinancialRow['select_working_capital_facilities_availed'])) if(isset($businessFinancialRow['select_working_capital_facilities_availed']))
{ {

View File

@ -1063,6 +1063,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<!-- ########################### Score Card Section ############################################### --> <!-- ########################### Score Card Section ############################################### -->
<?php <?php
//print_r($pd_score);die(); //print_r($pd_score);die();
$address_type_remarks_caption = array('well_suited' => 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited');
if( isset($pd_score) && count($pd_score)) if( isset($pd_score) && count($pd_score))
{ {
echo '<div id="page_break"> </div>'; echo '<div id="page_break"> </div>';
@ -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 % >>"); $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 '<table class="mini_scorecard_table">'; echo '<table class="mini_scorecard_table">';
@ -2054,10 +2055,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php if(array_key_exists('both_sales_done',$wholesaleRow)) { ?> <?php if(array_key_exists('both_sales_done',$wholesaleRow)) { ?>
<div><?php echo $wholesaleRow['both_sales_done'] ?></div> <div><?php echo $wholesaleRow['both_sales_done'] ?></div>
<?php } <?php }
if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports')) // if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports'))
{ // {
echo '<div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>'; // echo '<div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>';
} // }
?> ?>
</td> </td>
@ -2107,7 +2108,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php } ?> <?php } ?>
</tbody> </tbody>
</table> </table>
<?php } ?> <?php }
if(is_numeric($fetchRow['total_per_of_export']))
{
echo '<br><div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>';
}
?>
<!-- end other avtivity --> <!-- end other avtivity -->
@ -2127,7 +2134,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '<tr> <th>Name of the Financial Insitution</th> <th>TID Number of POS machine</th> </tr>'; echo '<tr> <th>Name of the Financial Insitution</th> <th>TID Number of POS machine</th> </tr>';
foreach($fetchRow['pos_machines_details'] as $pos) foreach($fetchRow['pos_machines_details'] as $pos)
{ {
echo '<tr> <td class="customtd">'.$pos['pos_machines_financial_institution_name'].'</td> <td class="customtd">'.$pos['tid_no_of_pos_machine'].'</td> </tr>'; echo '<tr> <td class="customtd">'.($pos['pos_machines_financial_institution_name'] ? $pos['pos_machines_financial_institution_name'] : 'Not Provided').'</td> <td class="customtd">'.$pos['tid_no_of_pos_machine'].'</td> </tr>';
} }
echo '</table>'; echo '</table>';
} }
@ -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_receive'] = $businessFinancialRow['receive_the_money_in_days'];
$bindBusinessFinancial['working_capital_pay'] = $businessFinancialRow['pay_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']; $bindBusinessFinancial['is_working_capital_facility'] = $businessFinancialRow['is_there_working_capital_available'];
if(isset($businessFinancialRow['select_working_capital_facilities_availed'])) if(isset($businessFinancialRow['select_working_capital_facilities_availed']))
{ {