diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index 982dd184..d0cfd386 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -4957,7 +4957,7 @@ 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;die(); @@ -5016,24 +5016,24 @@ class PD_Controller extends REST_Controller { //echo "*******************************************"; $t = $this->load->view('report_templates/JSONTOREPORT',$data,true); - echo $t; die(); + //echo $t; die(); - 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-i-s'); - $pd_report_store = APPPATH.'views/pd_reports/'.$pdid.'/'.$pd_report_time.'.html'; - file_put_contents($pd_report_store,$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-i-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)); + // $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); - } + // 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"); diff --git a/api/application/docs/sample.pdf b/api/application/docs/sample.pdf index bd8550bb..f5cf48e8 100644 Binary files a/api/application/docs/sample.pdf and b/api/application/docs/sample.pdf differ diff --git a/api/application/views/business_scorecard.php b/api/application/views/business_scorecard.php index 043dfde7..a283c519 100644 --- a/api/application/views/business_scorecard.php +++ b/api/application/views/business_scorecard.php @@ -1,3 +1,3 @@ "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'.',';}} -?>
\ No newline at end of file +?> \ No newline at end of file diff --git a/api/application/views/general_scorecard.php b/api/application/views/general_scorecard.php index 2fc7c572..43e70913 100644 --- a/api/application/views/general_scorecard.php +++ b/api/application/views/general_scorecard.php @@ -1,3 +1,3 @@ "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'.',';}} -?> \ No newline at end of file +?> \ No newline at end of file diff --git a/api/application/views/report_templates/JSONTOREPORT.php b/api/application/views/report_templates/JSONTOREPORT.php index a484ace7..4e555759 100644 --- a/api/application/views/report_templates/JSONTOREPORT.php +++ b/api/application/views/report_templates/JSONTOREPORT.php @@ -246,8 +246,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); .gallery { margin: 5px; border: 1px solid #ccc; - - width: 100px; + width: 100%; } @@ -255,15 +254,12 @@ defined('BASEPATH') OR exit('No direct script access allowed'); border: 1px solid #777; } -.gallery img { - width: 100%; - height: auto; -} + .desc { padding: 8px; text-align: center; - color:greenl + color:green } /* #########Doc sighted gallary css######### */ @@ -656,16 +652,19 @@ defined('BASEPATH') OR exit('No direct script access allowed');PD Location Address : '.$pd_address['address'].', '.$pd_address['city_master'].', '.$pd_address['state_master'].' - '.$pincode;
+ echo 'PD Location Address : '.$pd_address['address'].', '.$pd_address['city_master'].', '.$pd_address['state_master'].' - '.$pincode.'.';
echo '
GPS Coordinates of location where PD Visit was done : '.$pd_master_details[0]['start_location'];
echo '
';
?>
- alt="Satellite Image of location of Where PD was Done" style="width:500px;height:200px;border-color:#0191ed" />
+ alt="Satellite Image of location of Where PD was Done" style="width:100%;height:300px;border-color:#0191ed" />
-
+
Location Summary
'; 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 'Brief of the Business / Service Model
+ +Brief of the Business / Service Model
| Product / Service | Process Brief |
|---|---|
| '.$process_brief['description'].''; ?> |
Brief of the Business / Service Model
+ +Brief of the Business / Service Model
| Product / Service | Process Brief |
|---|
Brief of the Business / Service Model
+ +Brief of the Business / Service Model
| Product / Service | Process Brief |
|---|
|
-
|
-
-
Have to make payment of about ". $total_payments_percent_on_credit_for_supplier ." % in advance rest on delivery.
"; } @@ -2205,7 +2220,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); // echo count($pd_images[11]); // die(); - $stock_img_row_count = ceil(count($stock_photo_count) / 5); + $stock_img_row_count = ceil(count($stock_photo_count) / 3); //echo $stock_img_row_count; if(count($stock_photo_count)){ echo '