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 ############################################### -->
<?php
//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))
{
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 % >>");
$address_type_remarks_caption = array('well_suited' => 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited');
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)) { ?>
<div><?php echo $wholesaleRow['both_sales_done'] ?></div>
<?php }
if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports'))
{
echo '<div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>';
}
// if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports'))
// {
// echo '<div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>';
// }
?>
</td>
@ -1801,7 +1802,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php } ?>
</tbody>
</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 -->
@ -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']))
{

View File

@ -804,6 +804,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<!-- ########################### Score Card Section ############################################### -->
<?php
//print_r($pd_score);die();
$address_type_remarks_caption = array('well_suited' => '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 '<table class="mini_scorecard_table">';
@ -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 '<br><br><span contenteditable="true">The PD location was </span><span class="tooltip">'. $pd_address['pd_location_master'].'<span class="tooltiptext">Address Form - Approach to PD location </span></span>. ' . '<span contenteditable="true">As Per PD Officer, the</span> <span class="tooltip">'.$address_type .'<span class="tooltiptext">Address Form - Type of Address </span></span> <span contenteditable="true">is situated in</span><span class="tooltip"> '.$comment_locality_master .'<span class="tooltiptext">Address Form - Comment on locality </span></span> <span contenteditable="true">Locality.</span>';
echo '<br><br><span contenteditable="true">The PD officer also made the following observations:</span>' ;
echo '<br><ul>';
echo '<li><span contenteditable="true"> The location of the</span><span class="tooltip"> '.$address_type.'<span class="tooltiptext">Address Form - Type of Address </span></span> <span contenteditable="true">is</span> <span class="tooltip">'.$address_type_remarks_caption [ $final_remark_data['is_service_provided'] ].'<span class="tooltiptext">Final Remarks Form - The location of the busienss suitability for Business </span></span> <span contenteditable="true">to the nature of business. </span></li>';
if($first_business_form['was_the_company_name_board_sighted'] == 'yes')
{
echo '<li><span class="tooltip">The Business Name board was seen at the visited address.<span class="tooltiptext">Business Form</span></span></li>';
@ -1794,10 +1796,8 @@ if($total_no_of_business > 0) {
<?php if(array_key_exists('both_sales_done',$wholesaleRow)) { ?>
<div><?php echo $wholesaleRow['both_sales_done'] ?></div>
<?php }
if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports'))
{
echo '<div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>';
}
//if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports'))
?>
</td>
@ -1847,7 +1847,13 @@ if($total_no_of_business > 0) {
<?php } ?>
</tbody>
</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 -->
@ -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']))
{

View File

@ -1063,6 +1063,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<!-- ########################### Score Card Section ############################################### -->
<?php
//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))
{
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 % >>");
$address_type_remarks_caption = array('well_suited' => 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited');
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)) { ?>
<div><?php echo $wholesaleRow['both_sales_done'] ?></div>
<?php }
if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports'))
{
echo '<div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>';
}
// if(!strcasecmp($wholesaleRow['area_of_sale'],'Domestics & Exports'))
// {
// echo '<div>'.$fetchRow['total_per_of_export'].' % of total sales is export.</div>';
// }
?>
</td>
@ -2107,7 +2108,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php } ?>
</tbody>
</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 -->
@ -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>';
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>';
}
@ -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']))
{