PD REPORT FEEDBACKS

This commit is contained in:
velz 2019-05-20 22:54:56 +05:30
parent 0e1f3f6d7c
commit 6fdcfa5e60
16 changed files with 166 additions and 150 deletions

View File

@ -4758,7 +4758,7 @@ class PD_Controller extends REST_Controller {
function getDetailedScoreCardChart($score)
{
$business_score['business'] = array_reverse($score['business']);
$business_score['business'] = ($score['business']);
$general_score['general'] = array_reverse($score['general']);
$logger = MYLOG::logFunction();
//print_r($business_score['business']);die();
@ -4770,7 +4770,10 @@ class PD_Controller extends REST_Controller {
}
}
$business_score['business'] = array_reverse($business_score['business']);
// print_r($general_score['general']);die();
// print_r($general_score['general']);
// print_r($business_score['business']);
// die();
$data = array();
$img_name = '';
@ -4779,9 +4782,9 @@ class PD_Controller extends REST_Controller {
{
// Incase running from local windows (Velz sys)
//$dsc_script_from_db = $this->PD_Model->selectCustomRecords(array('*'),array('script_name' => 'phantom_dsc_local'),SCRIPTS);
$dsc_script_from_db = $this->PD_Model->selectCustomRecords(array('*'),array('script_name' => 'phantom_dsc_local'),SCRIPTS);
$dsc_script_from_db = $this->PD_Model->selectCustomRecords(array('*'),array('script_name' => DETAILED_SCORE_CARD_IMAGE_LOCATION),SCRIPTS);
//$dsc_script_from_db = $this->PD_Model->selectCustomRecords(array('*'),array('script_name' => DETAILED_SCORE_CARD_IMAGE_LOCATION),SCRIPTS);
if(count($dsc_script_from_db))
{
@ -4878,11 +4881,11 @@ class PD_Controller extends REST_Controller {
// print_r($data['assessed_income_details']);
// echo "**************************";
// $data['dsc_cards'] = $this->getDetailedScoreCardChart( $data['pd_score'] );
$data['dsc_cards'] = $this->getDetailedScoreCardChart( $data['pd_score'] );
$score_for_chart = $data['pd_score']['score_summary']['overall_score']['final_score'] ? round($data['pd_score']['score_summary']['overall_score']['final_score'],1) : 0;
//echo $score_for_chart;
$chart = null;
//echo $score_for_chart;die();
$chart = 1;
if($chart)
{
//GET phantom script from DB

Binary file not shown.

View File

@ -31,22 +31,22 @@ class AssessedIncome
$ai_table_header_row .= '<th>Declared by Customer</th>';
$sale_revenue_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['sales_revenue']).'</td>';
$sale_revenue_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['sales_revenue']).'</td>';
if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 1)
{
$purchase_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['purchases']).'</td>';
$purchase_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['purchases']).'</td>';
}else if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 2)
{
$purchase_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['cost_of_goods_sold']).'</td>';
$purchase_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['cost_of_goods_sold']).'</td>';
}
$gross_profit_loss_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['grossprofit']).'</td>';
$business_expense_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['business_expenses']).'</td>';
$net_profit_loss_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['netprofit']).'</td>';
$house_hold_expense_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['house_hold_expenses']).'</td>';
$disposable_income_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['disposable_income']).'</td>';
$net_margin_row .= '<td>'.($ai_summary_details['sales_declared_by_customer']['netmargin']).'%</td>';
$gross_profit_loss_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['grossprofit']).'</td>';
$business_expense_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['business_expenses']).'</td>';
$net_profit_loss_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['netprofit']).'</td>';
$house_hold_expense_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['house_hold_expenses']).'</td>';
$disposable_income_row .= '<td class="customtd">'.$rupee_symbol.'' .MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['disposable_income']).'</td>';
$net_margin_row .= '<td class="customtd">'.($ai_summary_details['sales_declared_by_customer']['netmargin']).'%</td>';
}
@ -57,20 +57,20 @@ class AssessedIncome
$ai_table_header_row .= '<th>As Derived from Item Wise Sales</th>';
$sale_revenue_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['sales_revenue']).'</td>';
$sale_revenue_row .= '<td class="customtd">'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['sales_revenue']).'</td>';
if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 1)
{
$purchase_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['purchases']).'</td>';
$purchase_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['purchases']).'</td>';
}else if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 2)
{
$purchase_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['cost_of_goods_sold']).'</td>';
$purchase_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['cost_of_goods_sold']).'</td>';
}
$gross_profit_loss_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['grossprofit']).'</td>';
$business_expense_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['business_expenses']).'</td>';
$net_profit_loss_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['netprofit']).'</td>';
$house_hold_expense_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['house_hold_expenses']).'</td>';
$disposable_income_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['disposable_income']).'</td>';
$net_margin_row .= '<td>'.($ai_summary_details['sales_calculated_by_itemwise']['netmargin']).'%</td>';
$gross_profit_loss_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['grossprofit']).'</td>';
$business_expense_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['business_expenses']).'</td>';
$net_profit_loss_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['netprofit']).'</td>';
$house_hold_expense_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['house_hold_expenses']).'</td>';
$disposable_income_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['disposable_income']).'</td>';
$net_margin_row .= '<td class="customtd">'.($ai_summary_details['sales_calculated_by_itemwise']['netmargin']).'%</td>';
}
if(isset($ai_summary_details['sales_calculated_by_monthwise']) && count($ai_summary_details['sales_calculated_by_monthwise']))
@ -80,28 +80,28 @@ class AssessedIncome
$ai_table_header_row .= '<th>As Derived from Kuchha Sales Book/Bills</th>';
$sale_revenue_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['sales_revenue']).'</td>';
$sale_revenue_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['sales_revenue']).'</td>';
if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 1)
{
$purchase_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['purchases']).'</td>';
$purchase_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['purchases']).'</td>';
}
else if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 2)
{
$purchase_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['cost_of_goods_sold']).'</td>';
$purchase_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['cost_of_goods_sold']).'</td>';
}
$gross_profit_loss_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['grossprofit']).'</td>';
$business_expense_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['business_expenses']).'</td>';
$net_profit_loss_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['netprofit']).'</td>';
$house_hold_expense_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['house_hold_expenses']).'</td>';
$disposable_income_row .= '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['disposable_income']).'</td>';
$net_margin_row .= '<td>'.($ai_summary_details['sales_calculated_by_monthwise']['netmargin']).'%</td>';
$gross_profit_loss_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['grossprofit']).'</td>';
$business_expense_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['business_expenses']).'</td>';
$net_profit_loss_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['netprofit']).'</td>';
$house_hold_expense_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['house_hold_expenses']).'</td>';
$disposable_income_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['disposable_income']).'</td>';
$net_margin_row .= '<td class="customtd">'.($ai_summary_details['sales_calculated_by_monthwise']['netmargin']).'%</td>';
}
if(isset($ai_summary_details['consolidated_report']) && count($ai_summary_details['consolidated_report']))
{
$considered_sales_revenue_row .= '<td colsapn="3">'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['consolidated_report']['consolidated_sales_revenue']).'</td>';
$considered_net_profit_row .= '<td colsapn="3">'.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_summary_details['consolidated_report']['consolidated_nerprofit']).'</td>';
$considered_net_margint_row .= '<td colsapn="3">'.$ai_summary_details['consolidated_report']['consolidated_nermagin'].'%</td>';
$considered_sales_revenue_row .= '<td class="customtd" colsapn="3">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['consolidated_report']['consolidated_sales_revenue']).'</td>';
$considered_net_profit_row .= '<td class="customtd" colsapn="3">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['consolidated_report']['consolidated_nerprofit']).'</td>';
$considered_net_margint_row .= '<td class="customtd" colsapn="3">'.$ai_summary_details['consolidated_report']['consolidated_nermagin'].'%</td>';
}
$ai_table_header_row .= '</tr>';

View File

@ -52,7 +52,7 @@ class MYUTIL
{
$res.=$points . "";
}
return $result.' rupees Only';
return $result;
}

View File

@ -9,7 +9,7 @@ public static function getFamilyDetails($values){
//print_r($fetchVal);die();
$storeValue=array();
$storeValue['selected_person']= isset($fetchVal['selected_person_master']) ? $fetchVal['selected_person_master'] : $fetchVal['selected_person'];
$storeValue['residency_address']=$fetchVal['residence_place'].' in '.$fetchVal['residence_city_master'].','.$fetchVal['residence_state_master'].'-';
$storeValue['residency_address']=$fetchVal['residence_place'].' in, '.$fetchVal['residence_city_master'].', '.$fetchVal['residence_state_master'].'-';
$storeValue['residency_address'] .=($fetchVal['residence_pin'] == 1) ? $fetchVal['residence_other_pincode'] : (($fetchVal['residence_pin'] > 1) ? $fetchVal['residence_pincode_master'] : "");
//$storeValue['residency_address'] .='.';
$storeValue['residence_No_of_years']=($fetchVal['residence_No_of_years'] == 1) ? $fetchVal['residence_No_of_years'].' year' :(($fetchVal['residence_No_of_years'] > 1) ? $fetchVal['residence_No_of_years'].' years' : "");
@ -20,8 +20,8 @@ public static function getFamilyDetails($values){
$getFamilyEarning='';
if($tag['family_member_earning_status']==1){
$getFamilyEarning= 'Earning ';
$getFamilyOccupation = $tag['earning_segment']==1 ? $tag['earning_if_others_segment'].' Income of '.$tag['earning_gross_income_per_month'].' per month. ':' Income of '.'<span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>'.MYUTIL::customIndianNumberFormat($tag['earning_gross_income_per_month']).' per month.';
$getFamilyOccupation .= $tag['earning_name_of_the_employer_or_business'] ? ' received from '.$tag['earning_name_of_the_employer_or_business'].'.' : '';
$getFamilyOccupation = $tag['earning_segment']==1 ? $tag['earning_if_others_segment'].' Income of '.$tag['earning_gross_income_per_month'].' per month. ':' Income of '.'<span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>'.' '.MYUTIL::customIndianNumberFormat($tag['earning_gross_income_per_month']).' per month ';
$getFamilyOccupation .= $tag['earning_name_of_the_employer_or_business'] ? ' received from '.$tag['earning_name_of_the_employer_or_business'].'. ' : '';
$getFamilyOccupation .= 'He has been working for '.$tag['earning_number_of_years_in_employment_or_business'].' years.';

View File

@ -68,7 +68,7 @@ class PDSCORE
/*-------- BUSNIESS --------------*/
$no_of_years_business_run = array('100> to >=10' => 10,'5<= to <10' => 8,'3<= to <5' => 6,'1<= to <3' => 4,' 1> to >0' => 2);
$business_seasonality = array('yes' => 5, 'no major changes in sales' => 10);
$employees_total = array('1000> to >=50' => 10,'21<= to <50' => 8, '11<= to <=20' => 6, '6<= to <10' =>4,'5>= to >0' => 2) ;
$employees_total = array('1000> to >50' => 10,'21<= to <=50' => 8, '11<= to <=20' => 6, '6<= to <10' =>4,'5>= to >0' => 2) ;
$cerificates = array('yes' => 10,'no' => 0, 'not applicable' => 0);
$owned_property = array('yes' => 10, 'no' => 0);
$owned_vechile = array('yes' => 10, 'no' => 0);

View File

@ -231,17 +231,17 @@ class PD_Model extends SPARQ_Model {
{
//Get PD Documenttitle and name from DB
$where_condition_array = array('fk_pd_id' => $pdid);
if($form_id != null)
{
$where_condition_array['fk_form_id'] = $form_id;
}
if($company_id != null)
{
$where_condition_array['company_id'] = $company_id;
}
$where_condition_array['fk_form_id'] = $form_id != null ? $form_id : null;
$where_condition_array['company_id'] = $company_id != null ? $company_id : null;
//print_r($where_condition_array);die();
$document_lists = $this->selectRecords(PDDOCUMENTS,$where_condition_array);
//print_r($document_lists);die();
if(count($document_lists))
{

View File

@ -1,3 +1,3 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
$business_captions = array("no_of_years_business_run" => "Business Vintage >>", "location_suited_for_busienss" => "Business Location suitability >>", "business_seasonality" => "Seasonality >>", "employees_total" => "Employee Strength >>", "cerificates" => "Business Certifications Sighted >>","owned_property" => "Business Premise Ownership >>", "owned_vechile" => "Vehicle Ownership >>", "business_activity_has_seen" => "Business Activity Observed >>", "minimum_supplier_info" => "Supplier Information Shared >>", "minimum_client_info" => "Client Information Shared >>","stock_raw_material_enough" => "Sufficiency of Raw Materials Stock Observed >>", "stock_finished_goods_enough" => "Sufficiency of Finished/Traded Stock Observed >>", "vintage_of_business_account" => "Main Business Banking Account Vintage >>");$descriptions = '';$score = '';if(isset($business) && count($business)){foreach($business as $key => $d){$descriptions .= '"'.$business_captions [$key].'",'; $score .= $d['attributed_score'] != 0 && $d['max_score'] != 0 ? (($d['attributed_score']/$d['max_score']) * 100).',' : '0'.',';}}
?><html><head><script src="https://cdn.zingchart.com/zingchart.min.js"></script><link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <script>zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "ee6b7db5b51705a13dc2339db3edaf6d"];</script><style>#myChart-wrapper {margin: auto;}.zc-ref {display: none;}</style></head><body><div id="myChart"><a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a></div><script>var myConfig = {"type": "hbar","font-family": "Helvetica","title": {"text": "Business PD Score","font-family": "Arial","background-color": "none","font-color": "#000","font-size":"18px"},"plot": {"borderRadius": 8,"hover-state": {"visible": false},},"plotarea": {"margin": "60px 70px 20px 300px"},"scale-x": {"line-color": "","values": [<?php echo $descriptions;?>],"tick": {"visible": false},"guide": {"visible": false},"item": {"font-size": "12px","padding-right": "0px","auto-align": true,"font-color": "#000"}},"scale-y": {"visible": false,"guide": {"visible": false}},"series": [ {"values": [<?php echo $score;?>],"bar-width": "25px","max-trackers": 0,"value-box": {"placement": "top","text": "%v%","decimals": 2,"font-color": "#000","font-size": "12px"},"rules": [{"rule": "%v <= 50","background-color": "#E53935"}, {"rule": "%v >= 50 && %i <= 70","background-color": "#ff9900"}, {"rule": "%v >= 70 && %i <= 80","background-color": "#99ff66"}, {"rule": "%v >= 80","background-color": "#33cc33"}]}]};zingchart.render({id: "myChart",data: myConfig,width: 800});</script></body></html>
$business_captions = array("no_of_years_business_run" => "Business Banking Vintage >>", "location_suited_for_busienss" => "Business Location suitability >>", "business_seasonality" => "Seasonality >>", "employees_total" => "Employee Strength >>", "cerificates" => "Business Certifications Sighted >>","owned_property" => "Business Premise Ownership >>", "owned_vechile" => "Vehicle Ownership >>", "business_activity_has_seen" => "Business Activity Observed >>", "minimum_supplier_info" => "Supplier Information Shared >>", "minimum_client_info" => "Client Information Shared >>","stock_raw_material_enough" => "Raw Materials Stock Sufficiency >>", "stock_finished_goods_enough" => "Finished/Traded Stock Sufficiency >>", "vintage_of_business_account" => "Main Business Banking Account Vintage >>");$descriptions = '';$score = '';if(isset($business) && count($business)){foreach($business as $key => $d){$descriptions .= '"'.$business_captions [$key].'",'; $score .= $d['attributed_score'] != 0 && $d['max_score'] != 0 ? (($d['attributed_score']/$d['max_score']) * 100).',' : '0'.',';}}
?><html><head><script src="https://cdn.zingchart.com/zingchart.min.js"></script><link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <script>zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "ee6b7db5b51705a13dc2339db3edaf6d"];</script><style>#myChart-wrapper {margin: auto;}.zc-ref {display: none;}</style></head><body><div id="myChart"><a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a></div><script>var myConfig = {"type": "hbar","font-family": "Helvetica","title": {"text": "Business Related Parameters","font-family": "Arial","background-color": "none","font-color": "#000","font-size":"18px"},"plot": {"borderRadius": 8,"hover-state": {"visible": false},},"plotarea": {"margin": "60px 70px 20px 300px"},"scale-x": {"line-color": "","values": [<?php echo $descriptions;?>],"tick": {"visible": false},"guide": {"visible": false},"item": {"font-size": "12px","padding-right": "0px","auto-align": true,"font-color": "#000"}},"scale-y": {"visible": false,"guide": {"visible": false}},"series": [ {"values": [<?php echo $score;?>],"bar-width": "25px","max-trackers": 0,"value-box": {"placement": "top","text": "%v%","decimals": 2,"font-color": "#000","font-size": "12px"},"rules": [{"rule": "%v <= 50","background-color": "#E53935"}, {"rule": "%v >= 50 && %i <= 70","background-color": "#ff9900"}, {"rule": "%v >= 70 && %i <= 80","background-color": "#99ff66"}, {"rule": "%v >= 80","background-color": "#33cc33"}]}]};zingchart.render({id: "myChart",data: myConfig,width: 800});</script></body></html>

View File

@ -1,3 +1,3 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
$general_captions = array("otp_done" => "OTP authentication done >>","person_met_is_applicant" => "Is person Met, one of the loan applicants? >>","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" => "Name Board of the Business Seen >>","value_of_other_assets" => "Value of Assets as a % of Loan Amount >>");$descriptions = '';$score = '';if(isset($general) && count($general)){foreach($general as $key => $d){$descriptions .= '"'.$general_captions [$key].'",'; $score .= $d['attributed_score'] != 0 && $d['max_score'] != 0 ? (($d['attributed_score']/$d['max_score']) * 100).',' : '0'.',';}}
?><html><head><script src="https://cdn.zingchart.com/zingchart.min.js"></script><link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <script>zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "ee6b7db5b51705a13dc2339db3edaf6d"];</script><style>#myChart-wrapper {margin: auto;}.zc-ref {display: none;}</style></head><body><div id="myChart"><a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a></div><script>var myConfig = {"type": "hbar","font-family": "Helvetica","title": {"text": "Others PD Score","font-family": "Arial","background-color": "none","font-color": "#00","font-size":"18px"},"plot": {"borderRadius": 8,"hover-state": {"visible": false},},"plotarea": {"margin": "60px 70px 20px 300px"},"scale-x": {"line-color": "","values": [<?php echo $descriptions;?>],"tick": {"visible": false},"guide": {"visible": false},"item": {"font-size": "12px","padding-right": "0px","auto-align": true,"font-color": "#000"}},"scale-y": {"visible": false,"guide": {"visible": false}},"series": [ {"values": [<?php echo $score;?>],"bar-width": "25px","max-trackers": 0,"value-box": {"placement": "top","text": "%v%","decimals": 2,"font-color": "#000","font-size": "12px"},"rules": [{"rule": "%v <= 50","background-color": "#E53935"}, {"rule": "%v >= 50 && %i <= 70","background-color": "#ff9900"}, {"rule": "%v >= 70 && %i <= 80","background-color": "#99ff66"}, {"rule": "%v >= 80","background-color": "#33cc33"}]}]};zingchart.render({id: "myChart",data: myConfig,width: 800});</script></body></html>
$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% >>");$descriptions = '';$score = '';if(isset($general) && count($general)){foreach($general as $key => $d){$descriptions .= '"'.$general_captions [$key].'",'; $score .= $d['attributed_score'] != 0 && $d['max_score'] != 0 ? (($d['attributed_score']/$d['max_score']) * 100).',' : '0'.',';}}
?><html><head><script src="https://cdn.zingchart.com/zingchart.min.js"></script><link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <script>zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "ee6b7db5b51705a13dc2339db3edaf6d"];</script><style>#myChart-wrapper {margin: auto;}.zc-ref {display: none;}</style></head><body><div id="myChart"><a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a></div><script>var myConfig = {"type": "hbar","font-family": "Helvetica","title": {"text": "Other PD Parameters","font-family": "Arial","background-color": "none","font-color": "#00","font-size":"18px"},"plot": {"borderRadius": 8,"hover-state": {"visible": false},},"plotarea": {"margin": "60px 70px 20px 300px"},"scale-x": {"line-color": "","values": [<?php echo $descriptions;?>],"tick": {"visible": false},"guide": {"visible": false},"item": {"font-size": "12px","padding-right": "0px","auto-align": true,"font-color": "#000"}},"scale-y": {"visible": false,"guide": {"visible": false}},"series": [ {"values": [<?php echo $score;?>],"bar-width": "25px","max-trackers": 0,"value-box": {"placement": "top","text": "%v%","decimals": 2,"font-color": "#000","font-size": "12px"},"rules": [{"rule": "%v <= 50","background-color": "#E53935"}, {"rule": "%v >= 50 && %i <= 70","background-color": "#ff9900"}, {"rule": "%v >= 70 && %i <= 80","background-color": "#99ff66"}, {"rule": "%v >= 80","background-color": "#33cc33"}]}]};zingchart.render({id: "myChart",data: myConfig,width: 800});</script></body></html>

View File

@ -1 +1 @@
var page = require('webpage').create();page.viewportSize = { width: 600, height: 350 };page.clipRect = { top: 0, left: 0, width: 600, height: 350 };var score = 82.3;var url = 'http://localhost:9999/AWSEC2/sparqapi/api?'+score;var image_url = 'C:/5.6/xampp/htdocs/AWSEC2/sparqapi/api/application/views/report_templates/chart.png' ;page.open(url,function() {setTimeout(function() {page.render(image_url);phantom.exit();}, 500);});
var page = require('webpage').create();page.viewportSize = { width: 600, height: 350 };page.clipRect = { top: 0, left: 0, width: 600, height: 350 };var score = 91.1;var url = 'http://localhost:9999/AWSEC2/sparqapi/api?'+score;var image_url = 'C:/5.6/xampp/htdocs/AWSEC2/sparqapi/api/application/views/report_templates/chart.png' ;page.open(url,function() {setTimeout(function() {page.render(image_url);phantom.exit();}, 500);});

View File

@ -1 +1 @@
var wpage = require('webpage').create();var Content = '<html><head><script src="https://cdn.zingchart.com/zingchart.min.js"></script><link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <script>zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "ee6b7db5b51705a13dc2339db3edaf6d"];</script><style>#myChart-wrapper {margin: auto;}.zc-ref {display: none;}</style></head><body><div id="myChart"><a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a></div><script>var myConfig = {"type": "hbar","font-family": "Helvetica","title": {"text": "Others PD Score","font-family": "Arial","background-color": "none","font-color": "#00","font-size":"18px"},"plot": {"borderRadius": 8,"hover-state": {"visible": false},},"plotarea": {"margin": "60px 70px 20px 300px"},"scale-x": {"line-color": "","values": ["Value of Assets as a % of Loan Amount >>","Name Board of the Business Seen >>","Neighbourhood check >>","Customer Behaviour >>","Approach to PD location >>","Comment on Locality >>","Qualification of Loan Applicants >>","Is person Met, one of the loan applicants? >>","OTP authentication done >>",],"tick": {"visible": false},"guide": {"visible": false},"item": {"font-size": "12px","padding-right": "0px","auto-align": true,"font-color": "#000"}},"scale-y": {"visible": false,"guide": {"visible": false}},"series": [ {"values": [100,100,100,100,70,70,100,100,100,],"bar-width": "25px","max-trackers": 0,"value-box": {"placement": "top","text": "%v%","decimals": 2,"font-color": "#000","font-size": "12px"},"rules": [{"rule": "%v <= 50","background-color": "#E53935"}, {"rule": "%v >= 50 && %i <= 70","background-color": "#ff9900"}, {"rule": "%v >= 70 && %i <= 80","background-color": "#99ff66"}, {"rule": "%v >= 80","background-color": "#33cc33"}]}]};zingchart.render({id: "myChart",data: myConfig,width: 800});</script></body></html>';var pageurl = 'C:/5.6/xampp/htdocs/AWSEC2/sparqapi/api/application/views/report_templates/dsc.html'; wpage.viewportSize = { width: 810, height: 250 };wpage.setContent(Content, pageurl); wpage.onLoadFinished = function(status){wpage.render('C:/5.6/xampp/htdocs/AWSEC2/sparqapi/api/application/views/report_templates/dsc_general.png'); phantom.exit();};
var wpage = require('webpage').create();var Content = '<html><head><script src="https://cdn.zingchart.com/zingchart.min.js"></script><link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <script>zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "ee6b7db5b51705a13dc2339db3edaf6d"];</script><style>#myChart-wrapper {margin: auto;}.zc-ref {display: none;}</style></head><body><div id="myChart"><a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a></div><script>var myConfig = {"type": "hbar","font-family": "Helvetica","title": {"text": "Other PD Parameters","font-family": "Arial","background-color": "none","font-color": "#00","font-size":"18px"},"plot": {"borderRadius": 8,"hover-state": {"visible": false},},"plotarea": {"margin": "60px 70px 20px 300px"},"scale-x": {"line-color": "","values": ["Asset Value by Loan Amount% >>","Business Board Sighted >>","Neighbourhood check >>","Customer Behaviour >>","Approach to PD location >>","Comment on Locality >>","Qualification of Loan Applicants >>","Is person Met, a loan applicant >>","OTP authentication done >>",],"tick": {"visible": false},"guide": {"visible": false},"item": {"font-size": "12px","padding-right": "0px","auto-align": true,"font-color": "#000"}},"scale-y": {"visible": false,"guide": {"visible": false}},"series": [ {"values": [100,100,100,100,70,70,100,100,100,],"bar-width": "25px","max-trackers": 0,"value-box": {"placement": "top","text": "%v%","decimals": 2,"font-color": "#000","font-size": "12px"},"rules": [{"rule": "%v <= 50","background-color": "#E53935"}, {"rule": "%v >= 50 && %i <= 70","background-color": "#ff9900"}, {"rule": "%v >= 70 && %i <= 80","background-color": "#99ff66"}, {"rule": "%v >= 80","background-color": "#33cc33"}]}]};zingchart.render({id: "myChart",data: myConfig,width: 800});</script></body></html>';var pageurl = 'C:/5.6/xampp/htdocs/AWSEC2/sparqapi/api/application/views/report_templates/dsc.html'; wpage.viewportSize = { width: 810, height: 250 };wpage.setContent(Content, pageurl); wpage.onLoadFinished = function(status){wpage.render('C:/5.6/xampp/htdocs/AWSEC2/sparqapi/api/application/views/report_templates/dsc_general.png'); phantom.exit();};

View File

@ -11,7 +11,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
.page_break { page-break-before: always; }
.page { width: 100%; height: 95%; }
#page_break { page-break-before: always; }
/*.page { width: 100%; height: 95%; }*/
@page {
margin: 100px 50px;
/*font-family:Helvetica,Arial;*/
@ -193,6 +194,17 @@ defined('BASEPATH') OR exit('No direct script access allowed');
border-color:red;
color:red;
}
#tick_div_other {
position: relative;
width: 40px;
height: 25px;
margin-left: 93%;
margin-top: -29px;
border: 2px outset #000;
text-align: center;
border-color:red;
color:red;
}
/* #########Person met card css######### */
@ -310,8 +322,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php
echo "<p>Loan Amount Applied For : </p>";
echo '<table>
<tr> <td style="text-align:left;">As Per PD Initiation </td> <td> </td><td> </td><td> </td><td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px"></span>' . MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')</span></td> </tr>
<tr> <td style="text-align:left;">As Per Loan Applicants during PD</td> <td> </td><td> </td><td> </td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px"></span>' . MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($loan_form['loan_amount']) .')</span></td> </tr></table>';
<tr> <td style="text-align:left;">As Per PD Initiation </td> <td> </td><td> </td><td> </td><td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px"></span>' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')</span></td> </tr>
<tr> <td style="text-align:left;">As Per Loan Applicants during PD</td> <td> </td><td> </td><td> </td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px"></span>' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($loan_form['loan_amount']) .')</span></td> </tr></table>';
//echo "<div class='page_break'></div>";
echo "<br><br>";
?>
@ -463,7 +475,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</tbody>
</table>-->
<br>
<div class="page"> </div>
<p><b>Loan Applicants:</b></p>
<table class="scorecard_table">
@ -534,7 +546,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
?>
</tbody>
</table>
<div class="page_break"> </div>
<div id="page_break"> </div>
<?php
//die();
@ -551,7 +563,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$is_show_scorecard = 1;
if($is_show_scorecard)
{
echo "<div class='page_break'> </div>";
echo "<h2>PD Score Summary</h2>";
?>
@ -604,7 +616,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{ echo "<b>Score Chart Not Generated</b>"; }
echo "<div class='page_break'></div>";
echo "<div id='page_break'></div>";
//######################### CHART ###########################
}
?>
@ -628,7 +640,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '<br><br>';
?>
<img border="3" src =<?php echo $pd_master_details[0]['satellite_image_base64_blob'];?> alt="Satellite Image of location of Where PD was Done" style="width:500px;height:200px;" /><br><br><br>
<img border="3" src =<?php echo $pd_master_details[0]['satellite_image_base64_blob'];?> alt="Satellite Image of location of Where PD was Done" style="width:500px;height:200px;border-color:#0191ed" /><br><br><br>
<!-- <img src ='http://ssa.sineedge.com/sparqapi/logo/sinelogo.png' alt="Approch to PD Location" style="width:150;height:50px;" />
@ -641,6 +653,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$estimated_area = $pd_address['estimated_area'].' ';
$estimated_area .= $pd_address['uom_others'] != "" || $pd_address['uom_others'] != null ? $pd_address['uom_others'] : $pd_address['uom_master'];
$locality = $pd_address['locality_master'];
$locality_master_article = !strcasecmp($pd_address['locality_master'],'excellent') ? 'an' : 'a';
$locality = preg_match("/^[aeiouAEIOU]/U", $locality) ? 'an '.$locality : 'a '.$locality;
$property_owner_type = $business_assets_details['business_assets_for_address'][0]['business_ownership_type'];
if($property_owner_type == 'rented') { $property_owner_type ='Rented (Rent Rs'.$business_assets_details['business_assets_for_address'][0]['business_monthly_rented_amt'].' Per Month)'; }else{$property_owner_type = 'Owned'; }
@ -649,10 +663,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '<p style="text-align:justify;">';
echo "The PD visit was done at ". $address_type. " of the loan applicants. ";
echo "The ".$address_type." is ".$property_owner_type." and the business has
been operation from here for the last $yrs_being_run.";
echo "The ".$address_type." is ".$property_owner_type." and the business has been in operation from here for the last $yrs_being_run.";
echo "<br><br>The ".$address_type." is located in ".$locality." and the estimated area of the office is ".$estimated_area." .";
echo "<br><br>The PD location was ". $pd_address['pd_location_master'].", and the locality in which the ".$address_type ." is situated is ".$pd_address['comment_locality_master'] .", as per the general observations made during the visit by PD officer.";
echo "<br><br>The PD location was ". $pd_address['pd_location_master'].". " . "As Per PD Offcier, the ".$address_type ." is situated in $locality_master_article ".$pd_address['comment_locality_master'] ." Locality.";
echo "<br><br>The PD officer also made the following observations:" ;
echo "<br><ul>";
@ -672,7 +685,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
echo $address_form['address_form_remark'];}
echo "</p>";
echo "<div class='page_break'></div>";
echo "<div id='page_break'></div>";
//die();
?>
@ -686,10 +699,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$loan_amount = MYUTIL::customIndianNumberFormat($loan_form['loan_amount']);
echo "During the PD visit,".$main_applicant_name.", provided the following information about loan applied for:";
echo "During the PD visit, ".$main_applicant_name.", provided the following information about loan applied for:";
$loan_table_dispaly_rows = array();
$loan_table_dispaly_rows[] = array('particulars' => 'Total Loan Amount applied for','details' => "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>".$loan_amount.' ('.MYUTIL::numtowords($loan_form['loan_amount']).')');
$loan_table_dispaly_rows[] = array('particulars' => 'Total Loan Amount applied for','details' => "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>"." ".$loan_amount.' ('.MYUTIL::numtowords($loan_form['loan_amount']).')');
$loan_table_dispaly_rows[] = array('particulars' => 'Loan Tenure expected','details' => $loan_form['loan_tenure'].' Months');
@ -705,9 +718,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
if(strcasecmp($loan_form['is_transfer'],'no'))
{
$loan_table_dispaly_rows[] = array('particulars' => 'Balance Transfer Amount','details' => "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>".MYUTIL::customIndianNumberFormat($loan_form['balance_transfer_amount']).' ('.MYUTIL::numtowords($loan_form['balance_transfer_amount']).')');
$loan_table_dispaly_rows[] = array('particulars' => 'Balance Transfer Amount','details' => "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>"." ".MYUTIL::customIndianNumberFormat($loan_form['balance_transfer_amount']).' ('.MYUTIL::numtowords($loan_form['balance_transfer_amount']).')');
$loan_table_dispaly_rows[] = array('particulars' => 'Top Up Amount applied for','details' => "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>".MYUTIL::customIndianNumberFormat($loan_form['topup_amount']).' ('.MYUTIL::numtowords($loan_form['topup_amount']).')');
$loan_table_dispaly_rows[] = array('particulars' => 'Top Up Amount applied for','details' => "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>"." ".MYUTIL::customIndianNumberFormat($loan_form['topup_amount']).' ('.MYUTIL::numtowords($loan_form['topup_amount']).')');
$loan_table_dispaly_rows[] = array('particulars' => 'End Use Topup','details' => ($loan_form['end_use_topup_master']));
@ -717,7 +730,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
else{
$loan_table_dispaly_rows[] = array('particulars' => 'Amount of Own Contribution','details' =>"<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>".MYUTIL::customIndianNumberFormat($loan_form['own_contribution']).' ('.MYUTIL::numtowords($loan_form['own_contribution']).')' );
$loan_table_dispaly_rows[] = array('particulars' => 'Amount of Own Contribution','details' =>"<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>"." ".MYUTIL::customIndianNumberFormat($loan_form['own_contribution']).' ('.MYUTIL::numtowords($loan_form['own_contribution']).')' );
$source_of_own_contribution = null;
foreach($loan_form['source_of_own_contribution_master'] as $own_source)
@ -729,7 +742,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$loan_table_dispaly_rows[] = array('particulars' => 'Source of Own Contribution','details' => $source_of_own_contribution);
}
$loan_table_dispaly_rows[] = array('particulars' => 'EMI Comfortable Paying','details' => $rupee_symbol.MYUTIL::customIndianNumberFormat($loan_form['emi_level']).'('.$rupee_symbol.MYUTIL::numtowords($loan_form['emi_level']).')' );
$loan_table_dispaly_rows[] = array('particulars' => 'EMI Comfortable Paying','details' => $rupee_symbol." ".MYUTIL::customIndianNumberFormat($loan_form['emi_level']).'('.MYUTIL::numtowords($loan_form['emi_level']).')' );
$loan_table_dispaly_rows[] = array('particulars' => 'Type of Property Being Mortgaged','details' => $loan_form['property_type_master']);
@ -739,7 +752,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$loan_table_dispaly_rows[] = array('particulars' => 'Status of Construction','details' => $loan_form['construction_status_master']);
$loan_table_dispaly_rows[] = array('particulars' => 'Estimated Market Value of the property being mortgaged','details' => $rupee_symbol.MYUTIL::customIndianNumberFormat($loan_form['emv_per_customer']).'('.MYUTIL::numtowords($loan_form['emv_per_customer']).')');
$loan_table_dispaly_rows[] = array('particulars' => 'Estimated Market Value of the property being mortgaged','details' => $rupee_symbol." ".MYUTIL::customIndianNumberFormat($loan_form['emv_per_customer']).'('.MYUTIL::numtowords($loan_form['emv_per_customer']).')');
//print_r($loan_table_dispaly_rows);die();
?>
@ -772,7 +785,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
// if($temp_show == null)
// {
?>
<div class='page_break'></div>
<div id='page_break'></div>
<?php
$businessResult=array();
@ -864,7 +877,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
if(isset($businessRow['officer_total']) && $businessRow['officer_total'] > 0)
{
$emp = $businessRow['officer_total'] > 1 ? 'employees' : 'employee';
$bindEachResult['officer_visit_company_employees']='At the time of PD visit,the officer sighted '.$businessRow['officer_total'] .' '.$emp.' at the business premises.';
$bindEachResult['officer_visit_company_employees']='At the time of PD visit, the officer sighted '.$businessRow['officer_total'] .' '.$emp.' at the business premises.';
}
else{
$bindEachResult['officer_visit_company_employees']='At the time of PD visit, PD officer could not able to see any of employees at the business premises.';
@ -881,13 +894,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
array_push($getDocuments,array('name' => 'PF Registration.','img' => isset($businessRow['pf_regn_pic']) ? $businessRow['pf_regn_pic'] : ''));
}
if(array_key_exists('esic_regn',$businessRow) && strtoupper($businessRow['esic_regn'])=='YES'){
array_push($getDocuments,array('name' => 'ESIC Registration.','img' => isset($businessRow['esic_regn_pic'])) ? $businessRow['esic_regn_pic'] : '');
array_push($getDocuments,array('name' => 'ESIC Registration.','img' => isset($businessRow['esic_regn_pic']) ? $businessRow['esic_regn_pic'] : ''));
}
if(array_key_exists('export_import_cert',$businessRow) && strtoupper($businessRow['export_import_cert'])=='YES'){
array_push($getDocuments,array('name' => 'Export/Import Certificate.','img' => isset($businessRow['export_import_cert_pic'])) ? $businessRow['export_import_cert_pic'] : '');
array_push($getDocuments,array('name' => 'Export/Import Certificate.','img' => isset($businessRow['export_import_cert_pic']) ? $businessRow['export_import_cert_pic'] : ''));
}
if(array_key_exists('factory_cert',$businessRow) && strtoupper($businessRow['factory_cert'])=='YES'){
array_push($getDocuments,array('name' => 'Factory Certificate.','img' => isset($businessRow['factory_cert_pic'])) ? $businessRow['factory_cert_pic'] : '');
array_push($getDocuments,array('name' => 'Factory Certificate.','img' => isset($businessRow['factory_cert_pic']) ? $businessRow['factory_cert_pic'] : ''));
}
if(strtoupper($businessRow['other_documents'])=='YES' && array_key_exists('documents',$businessRow)){
foreach($businessRow['documents'] as $docValue){
@ -898,7 +911,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
array_push($businessResult,$bindEachResult);
//print_r($businessResult);
//print_r($businessResult['visit_documents']);die();
?>
<h3>BUSINESS INFORMATION:</h3>
<?php
@ -966,11 +979,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
if($familyRow['name'] != "" || $familyRow['name'] != null){
?>
<tr>
<td><?php echo $familyRow['name'] ?></td>
<td><?php echo $familyRow['individual_relation'] ?></td>
<td><?php echo $familyRow['relation_to'] ?></td>
<td><?php echo $familyRow['relation_to_company'] ?></td>
<td><?php echo $familyRow['started_business']?></td>
<td class="customtd"><?php echo $familyRow['name'] ?></td>
<td class="customtd"><?php echo $familyRow['individual_relation'] ?></td>
<td class="customtd"><?php echo $familyRow['relation_to'] ?></td>
<td class="customtd"><?php echo $familyRow['relation_to_company'] ?></td>
<td class="customtd"><?php echo $familyRow['started_business']?></td>
</tr>
<?php } ?>
<?php } ?>
@ -1002,9 +1015,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php foreach($fetchRow['manufacturing'] as $manuRow){
?>
<tr>
<td><?php echo $manuRow['products'] ?></td>
<td><?php echo $manuRow['area_of_sale'] ?></td>
<td><div><?php echo $manuRow['sales_done'] ?></div>
<td class="customtd"><?php echo $manuRow['products'] ?></td>
<td class="customtd"><?php echo $manuRow['area_of_sale'] ?></td>
<td class="customtd"><div><?php echo $manuRow['sales_done'] ?></div>
<?php if(array_key_exists('both_sales_done',$manuRow)) { ?>
<div><?php echo $manuRow['both_sales_done'] ?></div>
<?php } ?>
@ -1025,7 +1038,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<tbody>
<?php foreach($fetchRow['manufacturing'] as $process_brief){?>
<tr> <td><?php echo $process_brief['products']; ?></td> <td><?php echo $process_brief['description']; ?></td> </tr>
<tr> <td class="customtd"><?php echo $process_brief['products']; ?></td> <td><?php echo $process_brief['description']; ?></td> </tr>
<?php } ?>
</tbody>
</table>
@ -1054,15 +1067,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php foreach($fetchRow['retail'] as $retailRow){
?>
<tr>
<td><?php echo $retailRow['products'] ?></td>
<td><?php echo $retailRow['area_of_sale'] ?></td>
<td><div><?php echo $retailRow['sales_done'] ?></div>
<td class="customtd"><?php echo $retailRow['products'] ?></td>
<td class="customtd"><?php echo $retailRow['area_of_sale'] ?></td>
<td class="customtd"><div><?php echo $retailRow['sales_done'] ?></div>
<?php if(array_key_exists('both_sales_done',$retailRow)) { ?>
<div><?php echo $retailRow['both_sales_done'] ?></div>
<?php } ?>
</td>
<td><?php echo $retailRow['max_sales_done']?></td>
<td class="customtd"><?php echo $retailRow['max_sales_done']?></td>
</tr>
<?php } ?>
</tbody>
@ -1077,7 +1090,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<tbody>
<?php foreach($fetchRow['retail'] as $retailRow){?>
<tr> <td><?php echo $retailRow['products']; ?></td> <td><?php echo $retailRow['description']; ?></td> </tr>
<tr> <td class="customtd"><?php echo $retailRow['products']; ?></td> <td><?php echo $retailRow['description']; ?></td> </tr>
<?php } ?>
</tbody>
</table>
@ -1105,15 +1118,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php foreach($fetchRow['serviceprovider'] as $serviceproviderRow){
?>
<tr>
<td><?php echo $serviceproviderRow['products'] ?></td>
<td><?php echo $serviceproviderRow['area_of_sale'] ?></td>
<td><div><?php echo $serviceproviderRow['sales_done'] ?></div>
<td class="customtd"><?php echo $serviceproviderRow['products'] ?></td>
<td class="customtd"><?php echo $serviceproviderRow['area_of_sale'] ?></td>
<td class="customtd"><div><?php echo $serviceproviderRow['sales_done'] ?></div>
<?php if(array_key_exists('both_sales_done',$serviceproviderRow)) { ?>
<div><?php echo $serviceproviderRow['both_sales_done'] ?></div>
<?php } ?>
</td>
<td><?php echo $serviceproviderRow['max_sales_done']?></td>
<td class="customtd"><?php echo $serviceproviderRow['max_sales_done']?></td>
</tr>
<?php } ?>
</tbody>
@ -1129,7 +1142,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<tbody>
<?php foreach($fetchRow['serviceprovider'] as $serviceproviderRow){?>
<tr> <td><?php echo $serviceproviderRow['products']; ?></td> <td><?php echo $serviceproviderRow['description']; ?></td> </tr>
<tr> <td class="customtd"><?php echo $serviceproviderRow['products']; ?></td> <td><?php echo $serviceproviderRow['description']; ?></td> </tr>
<?php } ?>
</tbody>
</table>
@ -1157,15 +1170,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php foreach($fetchRow['wholesale'] as $wholesaleRow){
?>
<tr>
<td><?php echo $wholesaleRow['products'] ?></td>
<td><?php echo $wholesaleRow['area_of_sale'] ?></td>
<td><div><?php echo $wholesaleRow['sales_done'] ?></div>
<td class="customtd"><?php echo $wholesaleRow['products'] ?></td>
<td class="customtd"><?php echo $wholesaleRow['area_of_sale'] ?></td>
<td class="customtd"><div><?php echo $wholesaleRow['sales_done'] ?></div>
<?php if(array_key_exists('both_sales_done',$wholesaleRow)) { ?>
<div><?php echo $wholesaleRow['both_sales_done'] ?></div>
<?php } ?>
</td>
<td><?php echo $wholesaleRow['max_sales_done']?></td>
<td class="customtd"><?php echo $wholesaleRow['max_sales_done']?></td>
</tr>
<?php } ?>
</tbody>
@ -1181,7 +1194,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<tbody>
<?php foreach($fetchRow['wholesale'] as $wholesaleRow){?>
<tr> <td><?php echo $wholesaleRow['products']; ?></td> <td><?php echo $wholesaleRow['description']; ?></td> </tr>
<tr> <td class="customtd"><?php echo $wholesaleRow['products']; ?></td> <td><?php echo $wholesaleRow['description']; ?></td> </tr>
<?php } ?>
</tbody>
</table>
@ -1249,8 +1262,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
?>
<td>
<div class="gallery">
<img src="<?php echo isset($dValue['img']) ? $dValue['img'] : '' ?>" alt="" width="200" height="200">
<div class="desc"><?php echo isset($dValue['name']) ? $dValue['name'] : 'NA'?></div>
<img src="<?php echo $dValue['img']; ?>" alt="" width="200" height="200">
<div class="desc"><?php echo $dValue['name']?></div>
</div>
</td>
<?php } ?>
@ -1314,7 +1327,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
foreach($iterateAsset['details'] as $business_asset_key => $baRow){
if(isset($baRow['business_assets_mode_master']))
{
$rent_amount = isset($baRow['rent_amount']) ? $rupee_symbol.MYUTIL::customIndianNumberFormat((double)$baRow['rent_amount']): '0.00';
$rent_amount = isset($baRow['rent_amount']) ? $rupee_symbol." ".MYUTIL::customIndianNumberFormat((double)$baRow['rent_amount']): '0.00';
?>
<tr>
<td class="customtd"><?php echo ($business_asset_key+1);?></td>
@ -1426,9 +1439,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php foreach($businessFinancialResult as $iterateFinance){
//print_r($iterateFinance);die();
?>
<p><?php echo "<strong>Company / Firm Name :</strong>" . $iterateFinance['company_name']; ?></p>
<p><?php echo "<strong>No of Years of Financial Statements provided :</strong>" . $iterateFinance['years_data_provided']; ?></p>
<p><?php echo "<strong>Snapshot of Financials as per Books of Account Provided:</strong>"; ?></p>
<p><?php echo "<strong>Company / Firm Name : </strong>" . $iterateFinance['company_name']; ?></p>
<p><?php echo "<strong>No of Years of Financial Statements provided : </strong>" . $iterateFinance['years_data_provided']; ?></p>
<p><?php echo "<strong>Snapshot of Financials as per Books of Account Provided : </strong>"; ?></p>
<?php if(count($iterateFinance['statements'])>0){ ?>
<table class="scorecard_table">
@ -1439,7 +1452,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</tr>
</thead>
<tbody>
<tr><td>Sales / Revenue (Rs)</td> <?php foreach($iterateFinance['statements'] as $bfRow){ echo '<td style="text-align:center;">'.$rupee_symbol.''.MYUTIL::customIndianNumberFormat($bfRow['financial_sales_revenue']).'</td>';}?> </tr>
<tr><td>Sales / Revenue (Rs)</td> <?php foreach($iterateFinance['statements'] as $bfRow){ echo '<td style="text-align:center;">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($bfRow['financial_sales_revenue']).'</td>';}?> </tr>
<tr><td>Net Profit / <span style="color:red;">(Net Loss)</span> (Rs)</td> <?php foreach($iterateFinance['statements'] as $bfRow){ if($bfRow['financial_net_profit_mode'] == 1){ echo '<td style="text-align:center;color:green;">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($bfRow['financial_net_profit']).'</td>';}else{ echo '<td style="text-align:center;color:red;">('.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($bfRow['financial_net_loss']).')</td>'; } }?></tr>
@ -1598,13 +1611,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
?>
<tr>
<td><?php echo $bdRow['account_name'] ?></td>
<td><?php echo $bdRow['bank_name'] ?></td>
<td><?php echo $bdRow['account_type'] ?></td>
<td><?php echo $bdRow['vintage'] ?></td>
<td class="customtd"><?php echo $bdRow['bank_name'] ?></td>
<td class="customtd"><?php echo $bdRow['account_type'] ?></td>
<td class="customtd"><?php echo $bdRow['vintage'] ?></td>
<?php if($getEachValues['is_od_cc']){?>
<td><?php echo $bdRow['od_cc_limit'] ?></td>
<td class="customtd"><?php echo $bdRow['od_cc_limit'] ?></td>
<?php } ?>
<td><?php echo $bdRow['main_business'] ?></td>
<td class="customtd"><?php echo $bdRow['main_business'] ?></td>
</tr>
<?php } ?>
@ -2088,9 +2101,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php }
if(!strcasecmp($is_stock_sufficient_enough,'yes')){
echo '<p style="text-align:justify;">Considering the size of operations, the stock of goods maintained is sufficient as per the PD Officers observations.</p>';
echo '<p style="text-align:justify;">Considering the size of operations, the stock of finished goods maintained is sufficient as per the PD Officers observations.</p>';
}else if(!strcasecmp($is_stock_sufficient_enough,'no')){
echo '<p style="text-align:justify;">Considering the size of operations, the stock of goods maintained is not sufficient as per the PD Officers observations.</p>';
echo '<p style="text-align:justify;">Considering the size of operations, the stock of finished goods maintained is not sufficient as per the PD Officers observations.</p>';
}
if(!strcasecmp($is_raw_materials_sufficient_enough,'yes'))
{
@ -2203,7 +2216,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '<tbody>';
foreach($ai_core_details_processed['purchase_to_display'] as $dat)
{
echo '<tr> <td>'.$dat['material_name'] .'</td> <td>'.$dat['qty'] .'</td> <td>'.$dat['uom'] .'</td> <td>'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($dat['rate']) .'</td> <td>'.$dat['frequency'] .'</td> <td>'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($dat['annual_value']) .'</td> </tr>';
echo '<tr> <td>'.$dat['material_name'] .'</td> <td class="customtd">'.$dat['qty'] .'</td> <td class="customtd">'.$dat['uom'] .'</td> <td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($dat['rate']) .'</td> <td class="customtd">'.$dat['frequency'] .'</td> <td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($dat['annual_value']) .'</td> </tr>';
}
echo '</tbody>';
@ -2248,10 +2261,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '<p style="text-align:justify;">';
if(isset($ai_core_details) && count($ai_core_details['sales_declared_by_customer']))
{
$str = 'As per person met, '.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_core_details['sales_declared_by_customer'][0]['sales_declared_by_customer']).' ( '.MYUTIL::numtowords($ai_core_details['sales_declared_by_customer'][0]['sales_declared_by_customer']).' ) declared as annual sale value.';
$str = 'As per person met, '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_core_details['sales_declared_by_customer'][0]['sales_declared_by_customer']).' ( '.MYUTIL::numtowords($ai_core_details['sales_declared_by_customer'][0]['sales_declared_by_customer']).' ) declared as annual sale value.';
if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 2)
{
$str .= '<br>Also '.$rupee_symbol.MYUTIL::customIndianNumberFormat($ai_core_details['sales_declared_by_customer'][0]['margin_value']).' ( '.MYUTIL::numtowords( $ai_core_details['sales_declared_by_customer'][0]['margin_value']).' )'.'( '.$ai_core_details['sales_declared_by_customer'][0]['margin_per'].'% sales declared ) as net margin amount.';
$str .= '<br>Also '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_core_details['sales_declared_by_customer'][0]['margin_value']).' ( '.MYUTIL::numtowords( $ai_core_details['sales_declared_by_customer'][0]['margin_value']).' )'.'( '.$ai_core_details['sales_declared_by_customer'][0]['margin_per'].'% sales declared ) as net margin amount.';
}
echo $str;
@ -2269,10 +2282,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
foreach($ai_core_details_processed['sales_item_wise_to_diaplay'] as $sid)
{
echo '<tr>';
echo '<td>'.$sid['sale_item'].'</td><td class="customtd">'.$sid['sales_qty'].'</td><td class="customtd">'.$sid['uom'].'</td><td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($sid['rate_per_unit']).'</td><td>'.$sid['frequency'].'</td><td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($sid['annual_sale_value']).'</td>';
if(isset($sid['margin_per'])){echo '<td>'.$sid['margin_per'].'</td>'; }
if(isset($sid['margin_per_uom'])){echo '<td>'.$sid['margin_per_uom'].'</td>'; }
if(isset($sid['margin_final_value'])){echo '<td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($sid['margin_final_value']).'</td>'; }
echo '<td>'.$sid['sale_item'].'</td><td class="customtd">'.$sid['sales_qty'].'</td><td class="customtd">'.$sid['uom'].'</td><td>'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($sid['rate_per_unit']).'</td><td class="customtd">'.$sid['frequency'].'</td><td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($sid['annual_sale_value']).'</td>';
if(isset($sid['margin_per'])){echo '<td class="customtd">'.$sid['margin_per'].'</td>'; }
if(isset($sid['margin_per_uom'])){echo '<td class="customtd">'.$sid['margin_per_uom'].'</td>'; }
if(isset($sid['margin_final_value'])){echo '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($sid['margin_final_value']).'</td>'; }
echo '</tr>';
}
@ -2293,11 +2306,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo 'Item name : <b>' . $sale_month_wise['sales_item'].'</b><br>';
if($sale_month_wise['sales_type'] == 1)
{
echo '<b>'.$sale_month_wise['month_count'].'</b> month purchase value : <b>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($sale_month_wise['total_months_value']).'</b> Annual Purchase value:<b>'.$rupee_symbol.MYUTIL::customIndianNumberFormat(($sale_month_wise['total_months_value'] * (12 / $sale_month_wise['month_count']) )).'</b>';
echo '<b>'.$sale_month_wise['month_count'].'</b> month purchase value : <b>'.$rupee_symbol.''.MYUTIL::customIndianNumberFormat($sale_month_wise['total_months_value']).'</b> Annual Purchase value:<b>'.$rupee_symbol.'' .MYUTIL::customIndianNumberFormat(($sale_month_wise['total_months_value'] * (12 / $sale_month_wise['month_count']) )).'</b>';
}
else
{
echo 'Annual Purchase value:<b>'. $rupee_symbol.MYUTIL::customIndianNumberFormat(($sale_month_wise['total_months_value'] )).'</b>';
echo 'Annual Purchase value:<b>'. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat(($sale_month_wise['total_months_value'] )).'</b>';
}
echo '<hr>';
foreach($sale_month_wise['months'] as $sale_month_data)
@ -2353,7 +2366,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '<tbody>';
foreach($ai_core_details_processed['business_expenses_to_diaplay'] as $b_exp)
{
echo '<tr> <td>'.$b_exp['expense_item'] .'</td> <td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($b_exp['expense_value']) .'</td> <td>'.$b_exp['frequency_name'] .'</td> <td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($b_exp['annual_expenses_value']).'</td></tr>';
echo '<tr> <td>'.$b_exp['expense_item'] .'</td> <td class="customtd">'.$rupee_symbol." ".MYUTIL::customIndianNumberFormat($b_exp['expense_value']) .'</td> <td class="customtd">'.$b_exp['frequency_name'] .'</td> <td class="customtd">'.$rupee_symbol." ".MYUTIL::customIndianNumberFormat($b_exp['annual_expenses_value']).'</td></tr>';
}
echo '</tbody>';
echo '</table>';
@ -2369,7 +2382,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '<tbody>';
foreach($ai_core_details_processed['household_expenses_to_diaplay'] as $h_exp)
{
echo '<tr> <td>'.$h_exp['expense_item'] .'</td> <td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($h_exp['expense_value']) .'</td> <td>'.$h_exp['frequency_name'] .'</td> <td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($h_exp['annual_expense_value']) .'</td></tr>';
echo '<tr> <td>'.$h_exp['expense_item'] .'</td> <td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($h_exp['expense_value']) .'</td> <td class="customtd">'.$h_exp['frequency_name'] .'</td> <td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($h_exp['annual_expense_value']) .'</td></tr>';
}
echo '</tbody>';
echo '</table>';
@ -2456,12 +2469,12 @@ defined('BASEPATH') OR exit('No direct script access allowed');
?>
<tr>
<td class="customtd"><?php echo (++$oakey); ?></td>
<td><?php echo $paRow['assets_mode']; ?></td>
<td><?php echo $paRow['about_assets']; ?></td>
<td><?php echo $paRow['name_of_the_owner']; ?></td>
<td><?php echo isset($paRow['is_sum_assured']) ? 'Sum Assured -<br> '. $rupee_symbol.''.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : $rupee_symbol.''.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']); ?></td>
<td class="customtd"><?php echo $paRow['assets_mode']; ?></td>
<td class="customtd"><?php echo $paRow['about_assets']; ?></td>
<td class="customtd"><?php echo $paRow['name_of_the_owner']; ?></td>
<td class="customtd"><?php echo isset($paRow['is_sum_assured']) ? 'Sum Assured -<br> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']); ?></td>
<td class="customtd"><?php echo $paRow['purchase_year'] ? $paRow['purchase_year'] : 'NA'; ?></td>
<td><?php echo ($paRow['emi']) ? 'Yes' : 'No'; ?></td>
<td class="customtd"><?php echo ($paRow['emi']) ? 'Yes' : 'No'; ?></td>
</tr>
<?php } ?>
</tbody>
@ -2510,9 +2523,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
?>
<tr>
<td class="customtd"><?php echo (++$pbkey); ?></td>
<td><?php echo $bdRow['account_name'] ?></td>
<td><?php echo $bdRow['bank_name'] ?></td>
<td><?php echo $bdRow['account_type'] ?></td>
<td class="customtd"><?php echo $bdRow['account_name'] ?></td>
<td class="customtd"><?php echo $bdRow['bank_name'] ?></td>
<td class="customtd"><?php echo $bdRow['account_type'] ?></td>
<td class="customtd"><?php echo $bdRow['od_cc_limit'] ? $bdRow['od_cc_limit'] : "NA" ?></td>
<td class="customtd"><?php echo $bdRow['vintage'] ?></td>
@ -2566,7 +2579,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<td class="customtd"><?php echo $oiRow['source'] ?></td>
<td class="customtd"><?php echo $oiRow['earned_by'] ?></td>
<td class="customtd"><?php echo $rupee_symbol.''.MYUTIL::customIndianNumberFormat($oiRow['amount']).' '.$oiRow['frequency'] ?></td>
<td class="customtd"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($oiRow['amount']).' '.$oiRow['frequency'] ?></td>
</tr>
<?php } ?>
</tbody>
@ -2624,11 +2637,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
?>
<tr>
<td class="customtd"><?php echo (++$fmdkey) ?></td>
<td><?php echo $fmRow['name'] ?></td>
<td><?php echo $fmRow['family_member_relationship'] ?></td>
<td><?php echo $fmRow['family_member_age'] ?></td>
<td><?php echo $fmRow['family_member_earning'] ?></td>
<td><?php echo $fmRow['family_member_occupation'] ?></td>
<td class="customtd"><?php echo $fmRow['name'] ?></td>
<td class="customtd"><?php echo $fmRow['family_member_relationship'] ?></td>
<td class="customtd"><?php echo $fmRow['family_member_age'] ?></td>
<td class="customtd"><?php echo $fmRow['family_member_earning'] ?></td>
<td class="customtd"><?php echo $fmRow['family_member_occupation'] ?></td>
</tr>
<?php } ?>
</tbody>
@ -2815,7 +2828,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</td>
<td style="padding-left:50px;">
<div id="first_div" style="<?php if($other_behaviour){ echo 'border-color:green;color:green;'; }?>">Others mentioned as below</div> <div id="tick_div" style="<?php if($other_behaviour){ echo 'border-color:green;color:green;'; }?>"><?php if($other_behaviour){ echo $tick_mark; } ?></div>
<div id="first_div" style="<?php if($other_behaviour){ echo 'border-color:green;color:green;'; }?>">Others mentioned as below</div> <div id="tick_div_other" style="<?php if($other_behaviour){ echo 'border-color:green;color:green;'; }?>"><?php if($other_behaviour){ echo $tick_mark; } ?></div>
</td>
</tr>
</table>
@ -2894,7 +2907,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<p>PD officer recommendation is <?php
if($positive){ $color_for_pd_offcier_recom = 'green';} else if($negative) { $color_for_pd_offcier_recom = 'red';}else{ $color_for_pd_offcier_recom = 'black';}
echo '<span style="color:'.$color_for_pd_offcier_recom.';font-weight:bolder;">'.$fo_diplay.'</span>';?>. The following key points were considered while arriving at the aforementioned status.</p>
echo '<span style="color:'.$color_for_pd_offcier_recom.'">'.$fo_diplay.'</span>';?>. The following key points were considered while arriving at the aforementioned status.</p>
<?php
//die();
if($positive){ echo "<ul>"; foreach($final_remark_data['recommendation_positive'] as $pos){ echo "<li>".$pos['reason_for_positive']."</li>";}
@ -2930,7 +2943,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$question = MYUTIL::findQuestionByKey($score_questions_display,$key);
$span = '<span style="font-size:9px">('.$general['l1_weightage'].'% * '. $general['l2_weightage'].'% * '.$general['score_band'].')</span>';
$max_span = '<span style="font-size:9px">('.$general['l1_weightage'].'% * '. $general['l2_weightage'].'% * '.$general['max_score_band'].')</span>';
echo '<tr>'.'<td>'.$question.'</td><td>'.$general['l2_weightage'] .'%</td><td class="customtd">'.$general['answer'].
echo '<tr>'.'<td>'.$question.'</td><td class="customtd">'.$general['l2_weightage'] .'%</td><td class="customtd">'.$general['answer'].
'</td><td class="customtd">'.$general['score_band'].'</td><td class="customtd">'.$general['attributed_score'].'<br>'.$span.'</td><td class="customtd">'.$general['max_score'].'<br>'.$max_span.'</td></tr>';
}
@ -2995,13 +3008,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$max_span = '<span style="font-size:9px">('.$business['l1_weightage'].'% * '. $business['l2_weightage'].'% * '.$business['max_score_band'].')</span>';
if($key != 'cerificates')
{
echo '<tr>'.'<td>'.$question.'</td><td>'.$business['l2_weightage'].'%</td><td class="customtd">'.$business['answer'].'</td><td class="customtd">'.$business['score_band'].'</td><td class="customtd">'.$business['attributed_score'].'<br>'.$span.'</td><td class="customtd">'.$business['max_score'].'<br>'.$max_span.'</td></tr>';
echo '<tr>'.'<td>'.$question.'</td><td class="customtd">'.$business['l2_weightage'].'%</td><td class="customtd">'.$business['answer'].'</td><td class="customtd">'.$business['score_band'].'</td><td class="customtd">'.$business['attributed_score'].'<br>'.$span.'</td><td class="customtd">'.$business['max_score'].'<br>'.$max_span.'</td></tr>';
}
if($key == 'cerificates')
{
$certificates = $business;
echo '<tr>'.'<td> Certificates </td><td>'.round($business['l2_weightage'],2).'%</td><td class="customtd">'.'Refer Cert Table'.'</td><td class="customtd">'.$business['score_band'].'</td><td class="customtd">'.$business['attributed_score'].'</td><td class="customtd">'.$business['max_score'].'</td></tr>';
echo '<tr>'.'<td> Certificates </td><td class="customtd">'.round($business['l2_weightage'],2).'%</td><td class="customtd">'.'Refer Cert Table'.'</td><td class="customtd">'.$business['score_band'].'</td><td class="customtd">'.$business['attributed_score'].'</td><td class="customtd">'.$business['max_score'].'</td></tr>';
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -1,4 +1,4 @@
<?php
<?php
/**
* CodeIgniter
*