PD QC BASIC FUNCTIONALITY
This commit is contained in:
parent
da4222c9a8
commit
ddfd95ace7
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@ api/application/logs/*
|
||||
api/application/syslogs/*
|
||||
api/application/request_logs/*
|
||||
api/application/pd_reports/*
|
||||
api/application/views/pd_reports/*
|
||||
api/application/docs/*
|
||||
!api/application/logs/index.html
|
||||
!api/application/logs/.htaccess
|
||||
|
||||
@ -85,8 +85,9 @@ defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automat
|
||||
defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
|
||||
|
||||
// define login route name for token verification
|
||||
//defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN', '(listAllEntites/:any)'); // no errors
|
||||
//defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN', '(getPDReportHTML/:any)'); // no errors
|
||||
defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN', 'getPDOfficerCurrentLocation'); // no errors
|
||||
defined('ROUTE_LOGIN_X') OR define('ROUTE_LOGIN_X', '(getPDReportHTML/:any)'); // no errors
|
||||
//defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN','getFullPDDetails'); // no errors
|
||||
|
||||
/*********************AWS resources Constants*************************************************/
|
||||
|
||||
@ -87,6 +87,9 @@ $route['getCustomerSegment'] = 'Common_Masters_Controller/getCustomerSegment';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//USER MANAGEMENT
|
||||
$route['getListOfUsers'] = 'User_Management_Controller/listAllUsers';
|
||||
$route['saveNewUser'] = 'User_Management_Controller/saveNewUser';
|
||||
@ -197,7 +200,8 @@ $route['getPDAddress'] = 'PD_Controller/getPDAddress';
|
||||
$route['updatePDAddress'] = 'PD_Controller/updatePDAddress';
|
||||
$route['getPDCompleteDetails'] = 'PD_Controller/getPDCompleteDetails';
|
||||
$route['getStateCityNamesAndPincode'] = 'PD_Controller/getStateCityNamesAndPincode';
|
||||
|
||||
$route['saveHTMLReport'] = 'PD_Controller/saveHTMLReport';
|
||||
$route['(getPDReportHTML/:any)'] = 'PD_Controller/getPDReportHTML';
|
||||
// $route['savePDFormDetailsJSON'] = 'PD_Controller/savePDFormDetailsJSON';
|
||||
// $route['getPDFormDetailsJSON'] = 'PD_Controller/getPDFormDetailsJSON';
|
||||
|
||||
@ -221,5 +225,8 @@ $route['getDashBoardDetailsOfCity'] = 'Dash_Board_Controller/getDashBoardDetails
|
||||
$route['getDashBoardAlertDetails'] = 'Dash_Board_Controller/getDashBoardDetailsOfAlert';
|
||||
$route['PD_MIS_report'] = 'Dash_Board_Controller/PD_MIS_report';
|
||||
|
||||
|
||||
//$route['(getPDReportHTML/:any)'] = 'Welcome/getPDReportHTML';
|
||||
|
||||
//miscellanous
|
||||
//$route['showBusinessScorecard'] = 'PD_Controller/';
|
||||
|
||||
@ -703,7 +703,7 @@ class PD_Controller extends REST_Controller {
|
||||
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
||||
$charactersLength = strlen($characters);
|
||||
$randomString = '';
|
||||
for ($i = 0; $i < 8; $i++)
|
||||
for ($i = 0; $i < 16; $i++)
|
||||
{
|
||||
$randomString .= $characters[rand(0, $charactersLength - 1)];
|
||||
}
|
||||
@ -3915,7 +3915,9 @@ class PD_Controller extends REST_Controller {
|
||||
|
||||
/*********************************************************************************************
|
||||
*********************************************************************************************/
|
||||
public function generatePDReport_post()
|
||||
|
||||
//Generate Report AS PDF, currenly not in use.
|
||||
public function generatePDReportPDF_post()
|
||||
{
|
||||
$records = $this->post('records');
|
||||
$pdid = $records['pd_id'];
|
||||
@ -3981,8 +3983,7 @@ class PD_Controller extends REST_Controller {
|
||||
|
||||
$temp = $this->load->view('report_templates/JSONTOREPORT',$data,true);
|
||||
//Save Report as HTML Version with timestamp
|
||||
$file_name = APPPATH.'pd_reports/'.$pdid.'_'.date('Y-m-d-h-m-s').'.html';
|
||||
file_put_contents($file_name,$temp,LOCK_EX);
|
||||
|
||||
|
||||
//PDF Gen using DOM PDF
|
||||
$pdf_doc = $this->pdfgenerator->generate($temp, $filename='version', $stream=false, $paper = 'A4', $orientation = "portrait");
|
||||
@ -4058,6 +4059,109 @@ class PD_Controller extends REST_Controller {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Generate Report as HTML File
|
||||
public function generatePDReport_post()
|
||||
{
|
||||
$records = $this->post('records');
|
||||
$pdid = $records['pd_id'];
|
||||
$fk_createdby = $records['fk_createdby'];
|
||||
$original_template = "RAW";
|
||||
$is_regenerate = 0;
|
||||
if(isset($records['regenerate']))
|
||||
{
|
||||
$is_regenerate = 1;
|
||||
}
|
||||
|
||||
$data['pd_master_details'] = $this->PD_Model->getPDMasterDetails($pdid);
|
||||
$data['applicants_details'] = $this->PD_Model->getApplicantsDetails($pdid);
|
||||
$data['pd_additional_requirements'] = $this->PD_Model->getPDAdditionalRequirements($pdid);
|
||||
$data['score_questions_display'] = $this->PD_Model->getScoreableQuestionToDispaly($pdid);
|
||||
$data['pd_score'] = $this->calculateScore($pdid);
|
||||
$data['dsc_cards'] = $this->getDetailedScoreCardChart( $data['pd_score'] );
|
||||
$data['assessed_income_details'] = $this->getAssessedIncomeForPDReport($pdid);
|
||||
$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;
|
||||
|
||||
//GET phantom script from DB
|
||||
$phantom_script = $this->PD_Model->selectCustomRecords(array('*'),array('script_name' => PHANTOMJSSCRIPT_LOCATION),SCRIPTS);
|
||||
|
||||
$exact_script = $phantom_script[0]['script_content'];
|
||||
//print_r($exact_script);
|
||||
$exact_script = str_replace('{{place_score_here}}',$score_for_chart,$exact_script);
|
||||
//print_r($exact_script);die();
|
||||
|
||||
|
||||
//GENERATE CHART PART
|
||||
file_put_contents(APPPATH.'/views/js/phantomchart.js',$exact_script,LOCK_EX);
|
||||
|
||||
$str = 'phantomjs '.APPPATH.'/views/js/phantomchart.js';
|
||||
exec($str,$ou);
|
||||
exec('phantom.exit();');
|
||||
|
||||
//print_r($ou);
|
||||
|
||||
$chart_img_path = APPPATH.'/views/report_templates/chart.png';
|
||||
$type = pathinfo($chart_img_path, PATHINFO_EXTENSION);
|
||||
$chart_img_content = file_get_contents($chart_img_path);
|
||||
$base64_pdscore_chart_url = 'data:image/' . $type . ';base64,' . base64_encode($chart_img_content);
|
||||
$data['base64_pdscore_chart_url'] = $base64_pdscore_chart_url;
|
||||
// echo $data['base64_pdscore_chart_url'];
|
||||
//die();
|
||||
//END OF GENERATE CHART PART
|
||||
|
||||
|
||||
|
||||
|
||||
//GET ALL PROCESSED JSON
|
||||
for($i = 1;$i<=25;$i++)
|
||||
{
|
||||
$fields = array('processed_json');
|
||||
$where_condition_array = array('isactive' => 1,'fk_pd_id'=>$pdid,'fk_form_id' => $i);
|
||||
$data['pd_processed_forms'][$i] = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,PDFORMDETAILSJSON,array(),'','company_id','ASC');
|
||||
|
||||
$fields2 = array('*');
|
||||
$data['pd_images'][$i] = $this->PD_Model->getSignedPDDocsURL($pdid,$i);
|
||||
}
|
||||
|
||||
|
||||
$temp = $this->load->view('report_templates/JSONTOREPORT',$data,true);
|
||||
//Save Report as HTML Version with timestamp
|
||||
if (!is_dir(APPPATH.'views/pd_reports/'.$pdid)) {
|
||||
$dust = mkdir(APPPATH.'views/pd_reports/'.$pdid, 0777, TRUE);
|
||||
}
|
||||
$pd_report_time = date('Y-m-d-h-m-s');
|
||||
$pd_report_store = APPPATH.'views/pd_reports/'.$pdid.'/'.$pd_report_time.'.html';
|
||||
$is_write_done = file_put_contents($pd_report_store,$t);
|
||||
|
||||
if($is_write_done)
|
||||
{
|
||||
|
||||
$update = $this->PD_Model->updateRecords(array('pd_report_html_filename' => $pd_report_time),PDTRIGGER,array('pd_id' => $pdid));
|
||||
|
||||
$where_condition_array = array("pd_id" => $pdid);
|
||||
$temp_array = array('is_original_report_created'=>1,'pd_report_html_filename' => $pd_report_time,'pd_report_generated_date' => date('Y-m-d h:m:s'));
|
||||
|
||||
$id = $this->PD_Model->updateRecords($temp_array,PDTRIGGER,$where_condition_array);
|
||||
|
||||
$response_data['dataStatus'] = true;
|
||||
$response_data['status'] = REST_Controller::HTTP_OK;
|
||||
$response_data['msg'] = 'Report Generated Sucessfully..!';
|
||||
$this->response($response_data,REST_Controller::HTTP_OK);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$response_data['dataStatus'] = true;
|
||||
$response_data['status'] = REST_Controller::HTTP_NOT_MODIFIED;
|
||||
$response_data['msg'] = 'Something went wrong..!';
|
||||
$this->response($response_data,REST_Controller::HTTP_OK);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -4863,9 +4967,12 @@ class PD_Controller extends REST_Controller {
|
||||
public function codeigniterViewTest_post()
|
||||
{
|
||||
|
||||
|
||||
|
||||
//echo MYUTIL::customIndianNumberFormat(145263.45896);die();
|
||||
$records = $this->post('records');
|
||||
$pdid = $records['pd_id'];
|
||||
|
||||
$is_regenerate = 0;
|
||||
if(isset($records['regenerate']))
|
||||
{
|
||||
@ -4939,9 +5046,26 @@ class PD_Controller extends REST_Controller {
|
||||
//die();
|
||||
//echo "*******************************************";
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT',$data,true);
|
||||
$file_name = APPPATH.'pd_reports/'.$pdid.'_'.date('Y-m-d-h-m-s').'.html';
|
||||
//file_put_contents($file_name,$t,LOCK_EX);
|
||||
//echo $t; die();
|
||||
|
||||
//echo $t;
|
||||
|
||||
if (!is_dir(APPPATH.'views/pd_reports/'.$pdid)) {
|
||||
$dust = mkdir(APPPATH.'views/pd_reports/'.$pdid, 0777, TRUE);
|
||||
}
|
||||
$pd_report_time = date('Y-m-d-h-m-s');
|
||||
$pd_report_store = APPPATH.'views/pd_reports/'.$pdid.'/'.$pd_report_time.'.html';
|
||||
file_put_contents($pd_report_store,$t);
|
||||
|
||||
$update = $this->PD_Model->updateRecords(array('pd_report_html_filename' => $pd_report_time),PDTRIGGER,array('pd_id' => $pdid));
|
||||
|
||||
if(count($update))
|
||||
{
|
||||
$dat['dataStatus'] = true;
|
||||
$dat['status'] = REST_Controller::HTTP_OK;
|
||||
$dat['msg'] = 'Report Generated Sucessfully..!';
|
||||
$this->response($dat,REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
//PDF Gen using DOM PDF
|
||||
$pdf_doc = $this->pdfgenerator->generate($t, $filename='version', $stream=false, $paper = 'A4', $orientation = "portrait");
|
||||
//End of PDF Gen using DOM PDF
|
||||
@ -6483,5 +6607,48 @@ class PD_Controller extends REST_Controller {
|
||||
|
||||
}
|
||||
|
||||
public function saveHTMLReport_post()
|
||||
{
|
||||
|
||||
$records = $this->post('records');
|
||||
$pdid = $records['pdid'];
|
||||
$content = $records['content'];
|
||||
$pd_report_time = date('Y-m-d-h-m-s');
|
||||
$pd_report_store = APPPATH.'views/pd_reports/'.$pdid.'/'.$pd_report_time.'.html';
|
||||
file_put_contents($pd_report_store,$content);
|
||||
|
||||
$update = $this->PD_Model->updateRecords(array('pd_report_html_filename' => $pd_report_time),PDTRIGGER,array('pd_id' => $pdid));
|
||||
|
||||
if(count($update))
|
||||
{
|
||||
$dat['dataStatus'] = true;
|
||||
$dat['status'] = REST_Controller::HTTP_OK;
|
||||
$dat['msg'] = 'Report Generated Sucessfully..!';
|
||||
$this->response($dat,REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
|
||||
public function getPDReportHTML_get()
|
||||
{
|
||||
$pdid = $this->uri->segment(2);
|
||||
if(($pdid != null || $pdid != "") && (strlen($pdid) == 16) &&(is_string($pdid)))
|
||||
{
|
||||
$pd_data = $this->PD_Model->selectCustomRecords(array('pd_id','pd_report_html_filename'),array('random_string' => $pdid),PDTRIGGER);
|
||||
if(count($pd_data))
|
||||
{
|
||||
$view_name = 'pd_reports/'.$pd_data[0]['pd_id'].'/'.$pd_data[0]['pd_report_html_filename'].'.html';
|
||||
$this->load->view($view_name);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<h1> Not Found</h1>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<h1> Not Found</h1>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -28,4 +28,15 @@ class Welcome extends CI_Controller {
|
||||
//echo $PD_Controller->index();
|
||||
|
||||
}
|
||||
|
||||
public function getPDReportHTML()
|
||||
{
|
||||
//$code = $_GET[''];
|
||||
//echo $code;
|
||||
//print_r($this->uri->segment(2));
|
||||
|
||||
|
||||
$this->load->view('pd_reports/602/2019-05-23-04-05-52.html');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -63,6 +63,11 @@ class AUTHORIZATION
|
||||
|
||||
//print_r($CI->uri->uri_string);
|
||||
//die();
|
||||
|
||||
if( $routingName == ROUTE_LOGIN_X)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (!array_key_exists("Authorization",$headersData) OR $headersData['Authorization']!=$CI->config->item('authorization_key'))
|
||||
{
|
||||
set_status_header(REST_CONTROLLER::HTTP_UNAUTHORIZED,"Unauthorized");
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$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'.',';}}
|
||||
$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" => "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>
|
||||
@ -2,7 +2,7 @@
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="en" id="mydoc" onkeyup="saveEdits(event)">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title></title>
|
||||
@ -270,7 +270,17 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
function saveEdits(e)
|
||||
{
|
||||
|
||||
var editElem = document.getElementById("mydoc");
|
||||
var userVersion = editElem.innerHTML;
|
||||
//localStorage.removeItem('userEdits')
|
||||
//save the content to local storage
|
||||
localStorage.userEdits = userVersion;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -637,7 +647,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<p><?php
|
||||
$pd_address = $address_form['addresses'][0];
|
||||
$pincode = $pd_address['pincode_others'] != "" || $pd_address['pincode_others'] != null ? $pd_address['pincode_others'] : $pd_address['pincode_master'];
|
||||
echo '<b>PD Location Address : </b>'.$pd_address['address'].' ,'.$pd_address['city_master'].' ,'.$pd_address['state_master'].' - '.$pincode;
|
||||
echo '<b>PD Location Address : </b>'.$pd_address['address'].', '.$pd_address['city_master'].', '.$pd_address['state_master'].' - '.$pincode;
|
||||
echo '<br><br><b> GPS Coordinates of location where PD Visit was done : </b>'.$pd_master_details[0]['start_location'];
|
||||
echo '<br><br>';
|
||||
?>
|
||||
@ -663,20 +673,20 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
if($business_assets_details['business_assets_for_address'][0]['business_month'] != ""){ $yrs_being_run.= ' and '.$business_assets_details['business_assets_for_address'][0]['business_month'].' Months';}
|
||||
|
||||
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 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'].". " . "As Per PD Offcier, the ".$address_type ." is situated in ".$comment_locality_master ." Locality.";
|
||||
echo "<br><br>The PD officer also made the following observations:" ;
|
||||
echo "<br><ul>";
|
||||
echo '<span contenteditable="true">The PD visit was done at </span><span contenteditable="false">'. $address_type. '</span><span contenteditable="true"> of the loan applicants.</span>';
|
||||
echo '<span contenteditable="true">The </span><span contenteditable="false">'.$address_type.'</span><span contenteditable="true"> is </span><span contenteditable="false">'.$property_owner_type.'</span><span contenteditable="true"> and the business has been in operation from here for the last</span> <span contenteditable="false">'.$yrs_being_run.'.</span>';
|
||||
echo '<br><br>The '.$address_type.' is located in '.$locality.' and the estimated area of the '.$address_type.' is '.$estimated_area.' .';
|
||||
echo '<br><br>The PD location was '. $pd_address['pd_location_master'].'. ' . 'As Per PD Offcier, the '.$address_type .' is situated in '.$comment_locality_master .' Locality.';
|
||||
echo '<br><br>The PD officer also made the following observations:' ;
|
||||
echo '<br><ul>';
|
||||
|
||||
echo "<li> The location of the ".$address_type." is ".$address_type_remarks_caption [ $final_remark_data['is_service_provided'] ]." to the nature of business. </li>";
|
||||
echo '<li> The location of the '.$address_type.' is '.$address_type_remarks_caption [ $final_remark_data['is_service_provided'] ].' to the nature of business. </li>';
|
||||
if($business_assets_details['business_assets_for_address'][0]['business_is_pd_visited'] == 'yes')
|
||||
{
|
||||
echo "<li>Business Activity was seen during visit.</li>";
|
||||
echo '<li>Business Activity was seen during visit.</li>';
|
||||
}
|
||||
else{
|
||||
echo "<li>No business activity was seen during the PD visit</li>";
|
||||
echo '<li>No business activity was seen during the PD visit</li>';
|
||||
}
|
||||
if(isset($business_assets_details['business_assets_form_remark']) && $business_assets_details['business_assets_form_remark'] != ""){
|
||||
echo "<li>".$business_assets_details['business_assets_form_remark'] ."</li>";}
|
||||
@ -1702,7 +1712,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
$client_second_row .= ' '.$main_raw_material['manufacturing_client_name'].'</td>';
|
||||
|
||||
$client_third_row .= '<td class="customtd">'.$main_raw_material['manufacturing_contact_person_mobile_number'] ? $main_raw_material['manufacturing_contact_person_mobile_number'] : 'Not Provided' .'</td>';
|
||||
$client_third_row .= '<td class="customtd">'.($main_raw_material['manufacturing_contact_person_mobile_number'] ? $main_raw_material['manufacturing_contact_person_mobile_number'].'</td>' : 'Not Provided' .'</td>');
|
||||
|
||||
$client_fourth_row .= $main_raw_material['person_stdcode'] && $main_raw_material['person_landline'] ? '<td class="customtd">'. $main_raw_material['person_stdcode'].' '.$main_raw_material['person_landline'].'</td>' : '<td class="customtd">'.'Not Provided'.'</td>';
|
||||
|
||||
@ -1742,7 +1752,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
$client_second_row .= ' '.$trading_product['trade_client_name'].'</td>';
|
||||
|
||||
$client_third_row .= '<td class="customtd">'. $trading_product['trade_product_contact_person_mobile_number'] ? $trading_product['trade_product_contact_person_mobile_number'] : 'Not Provided'.'</td>';
|
||||
$client_third_row .= '<td class="customtd">'. ($trading_product['trade_product_contact_person_mobile_number'] ? $trading_product['trade_product_contact_person_mobile_number'].'</td>' : 'Not Provided'.'</td>');
|
||||
|
||||
$client_fourth_row .= $trading_product['person_stdcode'] && $trading_product['person_landline'] ? '<td class="customtd">'. $trading_product['person_stdcode'].' '.$trading_product['person_landline'].'</td>' : '<td class="customtd">'.'Not Provided'.'</td>';
|
||||
|
||||
@ -1783,7 +1793,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
$client_second_row .= ' '.$service_product['service_provider_client_name'].'</td>';
|
||||
|
||||
$client_third_row .= '<td class="customtd">'. $service_product['service_provider_product_contact_person_mobile_number'] ? $service_product['service_provider_product_contact_person_mobile_number'] : 'Not Provided' .'</td>';
|
||||
$client_third_row .= '<td class="customtd">'. ($service_product['service_provider_product_contact_person_mobile_number'] ? $service_product['service_provider_product_contact_person_mobile_number'].'</td>' : 'Not Provided' .'</td>');
|
||||
|
||||
$client_fourth_row .= $service_product['person_stdcode'] && $service_product['person_landline'] ? '<td class="customtd">'. $service_product['person_stdcode'].' '.$service_product['person_landline'].'</td>' : '<td class="customtd">'.'Not Provided'.'</td>';
|
||||
|
||||
@ -1808,7 +1818,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$client_fifth_row .= '</tr>';
|
||||
$client_sixth_row .= '</tr>';
|
||||
$client_seventh_row .= '</tr>';
|
||||
|
||||
//echo $client_third_row;die();
|
||||
?>
|
||||
|
||||
<?php
|
||||
@ -2500,7 +2510,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<th>Asset Description</th>
|
||||
<th>Asset Owned By</th>
|
||||
<th>Approx Market Value(Rs)</th>
|
||||
<th>Purchase Year</th>
|
||||
<th>Age of the Assest</th>
|
||||
<th>Loan Again Assest</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -54,7 +54,7 @@
|
||||
* NOTE: If you change these, also change the error_reporting() code below
|
||||
*/
|
||||
//define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
|
||||
define('ENVIRONMENT','development');
|
||||
define('ENVIRONMENT','testing');
|
||||
date_default_timezone_set('Asia/Kolkata');
|
||||
|
||||
|
||||
@ -77,7 +77,7 @@ switch (ENVIRONMENT)
|
||||
|
||||
case 'testing':
|
||||
error_reporting(-1);
|
||||
ini_set('display_errors', 0);
|
||||
ini_set('display_errors', 1);
|
||||
break;
|
||||
case 'production':
|
||||
ini_set('display_errors', 0);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user